File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed
src/test/java/de/undercouch/bson4jackson Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,21 @@ public static class ObjectIdClass {
7575 public org .bson .types .ObjectId oid ;
7676 }
7777
78+ /**
79+ * Test class for {@link BsonParserTest#parseWrappedFloat}
80+ */
81+ public static class OuterClass {
82+ @ JsonUnwrapped
83+ public InnerClass inner = new InnerClass ();
84+ }
85+
86+ /**
87+ * Test class for {@link BsonParserTest#parseWrappedFloat}
88+ */
89+ public static class InnerClass {
90+ public float floatValue = 40.0f ;
91+ }
92+
7893 private <T > T parseBsonObject (BSONObject o , Class <T > cls ,
7994 Module ... modules ) throws IOException {
8095 BSONEncoder enc = new BasicBSONEncoder ();
@@ -656,17 +671,8 @@ public void parseMinKey() throws Exception {
656671 assertEquals ("MinKey" , data .get ("A" ));
657672 }
658673
659- static class OuterClass {
660- @ JsonUnwrapped
661- public InnerClass inner = new InnerClass ();
662- }
663-
664- static class InnerClass {
665- public float floatValue = 40.0f ;
666- }
667-
668674 /**
669- * Test if wrapped floats deserialized. Refers issue #121.
675+ * Test if wrapped floats can be deserialized. Refers issue #121.
670676 * @throws Exception if something goes wrong
671677 */
672678 @ Test
You can’t perform that action at this time.
0 commit comments