@@ -589,19 +589,19 @@ public void jsonObjectByBean2() {
589
589
jsonObject .has ("someString" ));
590
590
assertFalse ("Normal field name (myDouble) processing did not work" ,
591
591
jsonObject .has ("myDouble" ));
592
- assertFalse ("Normal field name (someFloat) found " ,
592
+ assertFalse ("Normal field name (someFloat) processing did not work " ,
593
593
jsonObject .has ("someFloat" ));
594
- assertFalse ("Ignored field found!" ,
594
+ assertFalse ("Ignored field not found!" ,
595
595
jsonObject .has ("ignoredInt" ));
596
- assertTrue ("Normal field name (someInt) processing did not work " ,
596
+ assertTrue ("Normal field name (someInt) found " ,
597
597
jsonObject .has ("someInt" ));
598
- assertTrue ("Normal field name (someLong) processing did not work " ,
598
+ assertTrue ("Normal field name (someLong) found " ,
599
599
jsonObject .has ("someLong" ));
600
- assertTrue ("Overridden String field name (myStringField) not found" ,
600
+ assertTrue ("Overridden String field name (myStringField) found" ,
601
601
jsonObject .has ("myStringField" ));
602
- assertTrue ("Overridden String field name (Some Weird NAme that Normally Wouldn't be possible!) not found" ,
602
+ assertTrue ("Overridden String field name (Some Weird NAme that Normally Wouldn't be possible!) found" ,
603
603
jsonObject .has ("Some Weird NAme that Normally Wouldn't be possible!" ));
604
- assertTrue ("Overridden String field name (InterfaceField) not found" ,
604
+ assertTrue ("Overridden String field name (InterfaceField) found" ,
605
605
jsonObject .has ("InterfaceField" ));
606
606
}
607
607
@@ -619,26 +619,29 @@ public void jsonObjectByBean3() {
619
619
jsonObject .has ("someInt" ));
620
620
assertFalse ("Normal field name (myDouble) processing did not work" ,
621
621
jsonObject .has ("myDouble" ));
622
- assertFalse ("Overridden String field name (Some Weird NAme that Normally Wouldn't be possible!) FOUND!" ,
622
+ assertFalse ("Overridden String field name (Some Weird NAme that Normally Wouldn't be possible!) not FOUND!" ,
623
623
jsonObject .has ("Some Weird NAme that Normally Wouldn't be possible!" ));
624
- assertFalse ("Normal field name (someFloat) found" ,
624
+ assertFalse ("Normal field name (someFloat) found, but was overridden " ,
625
625
jsonObject .has ("someFloat" ));
626
- assertFalse ("Ignored field found!" ,
626
+ assertFalse ("Ignored field found! but was overridden " ,
627
627
jsonObject .has ("ignoredInt" ));
628
- assertFalse ("Ignored field at the same level as forced name found" ,
628
+ assertFalse ("Ignored field at the same level as forced name not found" ,
629
629
jsonObject .has ("ShouldBeIgnored" ));
630
- assertTrue ("Overridden int field name (newIntFieldName) not found" ,
630
+ assertFalse ("Normally ignored field (able) with explicit property name not found" ,
631
+ jsonObject .has ("able" ));
632
+ assertTrue ("Overridden int field name (newIntFieldName) found" ,
631
633
jsonObject .has ("newIntFieldName" ));
632
- assertTrue ("Normal field name (someLong) processing did not work " ,
634
+ assertTrue ("Normal field name (someLong) found " ,
633
635
jsonObject .has ("someLong" ));
634
- assertTrue ("Overridden String field name (myStringField) not found" ,
636
+ assertTrue ("Overridden String field name (myStringField) found" ,
635
637
jsonObject .has ("myStringField" ));
636
- assertTrue (jsonObject .has ("AMoreNormalName" ));
637
- assertTrue ("Overridden String field name (InterfaceField) not found" ,
638
+ assertTrue ("Overridden double field name (AMoreNormalName) found" ,
639
+ jsonObject .has ("AMoreNormalName" ));
640
+ assertTrue ("Overridden String field name (InterfaceField) found" ,
638
641
jsonObject .has ("InterfaceField" ));
639
- assertTrue ("Forced field not found!" ,
642
+ assertTrue ("Forced field found!" ,
640
643
jsonObject .has ("forcedInt" ));
641
- assertTrue ("Normally ignored field (getable) with explicit property name not found" ,
644
+ assertTrue ("Overridden boolean field name (Getable) found" ,
642
645
jsonObject .has ("Getable" ));
643
646
}
644
647
0 commit comments