You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by jw...@apache.org on 2016/10/24 00:47:42 UTC
groovy git commit: fix JsonTest spec test
Repository: groovy
Updated Branches:
refs/heads/master 132025997 -> b0406ddee
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/master
Commit: b0406ddee71eb1048ca9bd7ca9544f35eb722651
Parents: 1320259
Author: John Wagenleitner <jw...@apache.org>
Authored: Sun Oct 23 17:45:56 2016 -0700
Committer: John Wagenleitner <jw...@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[]
'''
}