Skip to content

Commit

Permalink
Remove @ignore from 22 test which pass after grails/grails-testing-su…
Browse files Browse the repository at this point in the history
…pport#435

These tests require StaticMessageSource instead of PluginAwareResourceBundleMessageSource
  • Loading branch information
jamesfredley committed Sep 29, 2024
1 parent 4857502 commit 0d8f763
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ class GrailsWebDataBinderConfigurationSpec extends Specification implements Data
author.stringWithSpecialBinding == 'Jeff Scott Brown'
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void 'Test binding format code'() {
given:
messageSource.addMessage 'my.date.format', Locale.US, 'MMddyyyy'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1642,7 +1642,6 @@ class GrailsWebDataBinderSpec extends Specification implements DataTest {
!book.hasErrors()
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void 'test binding an Date to code in @BindingFormat'() {
given:
Locale.setDefault(new Locale('en', 'US', ''))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
messageSource.addMessage("foo.bar", request.locale, "World")
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testRenderText() {
when:
controller.renderText()
Expand All @@ -24,7 +23,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
response.contentAsString == "good"
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testSimpleControllerRedirect() {
when:
controller.redirectToController()
Expand All @@ -33,7 +31,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
response.redirectedUrl == '/bar'
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testRenderView() {
when:
controller.renderView()
Expand All @@ -42,7 +39,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
"/another/foo" == controller.modelAndView.viewName
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testRenderXml() {
when:
controller.renderXml()
Expand All @@ -52,7 +48,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
"Great" == controller.response.xml.@title.text()
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testRenderJson() {

when:
Expand All @@ -63,7 +58,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
"Great" == controller.response.json.book
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testRenderAsJson() {

when:
Expand All @@ -74,7 +68,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
"bar" == controller.response.json.foo
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testRenderState() {
when:
params.foo = "bar"
Expand All @@ -87,7 +80,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
xml.attribute.find { it.@name == 'bar' }.@value.text() == 'foo'
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testInjectedProperties() {
expect:
request != null
Expand All @@ -99,7 +91,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
webRequest != null
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testControllerAutowiring() {
when:
controller.renderMessage()
Expand All @@ -108,7 +99,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
'World' == controller.response.contentAsString
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testRenderWithFormatXml() {
when:
response.format = 'xml'
Expand All @@ -118,7 +108,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
'<?xml version="1.0" encoding="UTF-8"?><map><entry key="foo">bar</entry></map>' == response.contentAsString
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testRenderWithFormatHtml() {
when:
response.format = 'html'
Expand All @@ -128,7 +117,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
model?.foo == 'bar'
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testWithFormTokenSynchronization() {
when:
controller.renderWithForm()
Expand All @@ -148,7 +136,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
"Good" == response.contentAsString
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testFileUpload() {
when:
final file = new GrailsMockMultipartFile("myFile", "foo".bytes)
Expand All @@ -159,7 +146,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
file.targetFileLocation.path == "${File.separatorChar}local${File.separatorChar}disk${File.separatorChar}myFile"
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testRenderBasicTemplateNoTags() {
given:
def templateName = 'testRenderBasicTemplateNoTags'
Expand All @@ -172,7 +158,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
response.contentAsString == "Hello 10"
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testRenderBasicTemplateWithTags() {
given:
def templateName = 'testRenderBasicTemplateWithTags'
Expand All @@ -185,7 +170,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
response.contentAsString == "Hello World"
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testRenderBasicTemplateWithLinkTag() {
given:
def templateName = 'testRenderBasicTemplateWithLinkTag'
Expand All @@ -198,7 +182,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
response.contentAsString == "Hello /bar"
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testInvokeTagLibraryMethod() {
when:
controller.renderTemplateContents()
Expand All @@ -207,7 +190,6 @@ class AstEnhancedControllerUnitTestMixinTests extends Specification implements C
response.contentAsString == "/foo"
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testInvokeTagLibraryMethodViaNamespace() {
when:
groovyPages['/another/_bar.gsp'] = 'Hello <g:message code="foo.bar" />'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ class ControllerUnitTestMixinTests extends Specification implements ControllerUn
webRequest != null
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testControllerAutowiring() {
messageSource.addMessage("foo.bar", request.locale, "Hello World")

Expand Down Expand Up @@ -193,7 +192,6 @@ class ControllerUnitTestMixinTests extends Specification implements ControllerUn
response.contentAsString == "Hello 10"
}

@Ignore("PluginAwareResourceBundleMessageSource instead of StaticMessageSource which supports .addMessage()")
void testRenderBasicTemplateWithTags() {
given:
def templateName = 'testRenderBasicTemplateWithTags'
Expand Down Expand Up @@ -227,7 +225,6 @@ class ControllerUnitTestMixinTests extends Specification implements ControllerUn
response.contentAsString == "/foo"
}

@PendingFeature(reason = 'Hello foo.bar != Hello World')
void testInvokeTagLibraryMethodViaNamespace() {
when:
groovyPages['/test/_bar.gsp'] = 'Hello <g:message code="foo.bar" />'
Expand Down

0 comments on commit 0d8f763

Please sign in to comment.