Search in sources :

Example 1 with POJOPropertiesCollector

use of com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector in project jackson-databind by FasterXML.

the class TestBuilderMethods method testSimple.

public void testSimple() {
    POJOPropertiesCollector coll = collector(SimpleBuilder.class, "with");
    Map<String, POJOPropertyBuilder> props = coll.getPropertyMap();
    assertEquals(1, props.size());
    POJOPropertyBuilder prop = props.get("x");
    assertNotNull(prop);
    assertTrue(prop.hasField());
    assertFalse(prop.hasGetter());
    assertTrue(prop.hasSetter());
}
Also used : POJOPropertyBuilder(com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder) POJOPropertiesCollector(com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector)

Aggregations

POJOPropertiesCollector (com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector)1 POJOPropertyBuilder (com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder)1