@Test public void testTransformBooleanHappyCase() { Boolean booleanEntity = booleanJsonMapper.transformBoolean( JSON_RESPONSE ); assertThat( booleanEntity, is( false ) ); }
public Boolean transformBoolean( String booleanJsonResponse ) throws JsonSyntaxException { JsonObject rootObject = parser.parse( booleanJsonResponse ).getAsJsonObject(); return rootObject.get( "bool" ).getAsBoolean(); }
BooleanJsonMapper { public Boolean transformBoolean( String booleanJsonResponse ) throws JsonSyntaxException { JsonObject rootObject = parser.parse( booleanJsonResponse ).getAsJsonObject(); return rootObject.get( "bool" ).getAsBoolean(); } }
BooleanJsonMapper { public Boolean transformBoolean( String booleanJsonResponse ) throws JsonSyntaxException { JsonObject rootObject = parser.parse( booleanJsonResponse ).getAsJsonObject(); return rootObject.get( "bool" ).getAsBoolean(); } @Inject  BooleanJsonMapper(); }
BooleanJsonMapper { public Boolean transformBoolean( String booleanJsonResponse ) throws JsonSyntaxException { JsonObject rootObject = parser.parse( booleanJsonResponse ).getAsJsonObject(); return rootObject.get( "bool" ).getAsBoolean(); } @Inject  BooleanJsonMapper(); Boolean transformBoolean( String booleanJsonResponse ); }
BooleanJsonMapper { public Boolean transformBoolean( String booleanJsonResponse ) throws JsonSyntaxException { JsonObject rootObject = parser.parse( booleanJsonResponse ).getAsJsonObject(); return rootObject.get( "bool" ).getAsBoolean(); } @Inject  BooleanJsonMapper(); Boolean transformBoolean( String booleanJsonResponse );  }