fix JsonTest spec test
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/b0406dde Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/b0406dde Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/b0406dde Branch: refs/heads/parrot Commit: b0406ddee71eb1048ca9bd7ca9544f35eb722651 Parents: 1320259 Author: John Wagenleitner <jwagenleit...@apache.org> Authored: Sun Oct 23 17:45:56 2016 -0700 Committer: John Wagenleitner <jwagenleit...@apache.org> Committed: Sun Oct 23 17:45:56 2016 -0700 ---------------------------------------------------------------------- subprojects/groovy-json/src/spec/test/json/JsonTest.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/b0406dde/subprojects/groovy-json/src/spec/test/json/JsonTest.groovy ---------------------------------------------------------------------- diff --git a/subprojects/groovy-json/src/spec/test/json/JsonTest.groovy b/subprojects/groovy-json/src/spec/test/json/JsonTest.groovy index 28067a6..c230a62 100644 --- a/subprojects/groovy-json/src/spec/test/json/JsonTest.groovy +++ b/subprojects/groovy-json/src/spec/test/json/JsonTest.groovy @@ -114,12 +114,12 @@ class JsonTest extends GroovyTestCase { def generator = new JsonGenerator.Options() .excludeNulls() - .dateFormat('MM@dd@yyyy') + .dateFormat('yyyy@MM') .excludeFieldsByName('age', 'password') .excludeFieldsByType(URL) .build() - assert generator.toJson(person) == '{"dob":"12@15@1984","name":"John"}' + assert generator.toJson(person) == '{"dob":"1984@12","name":"John"}' // end::json_output_generator[] ''' }