use of com.enonic.xp.script.serializer.MapGenerator in project xp by enonic.
the class PropertyTreeMapperTest method raw_values.
@Test
public void raw_values() throws Exception {
final PropertyTree properties = new PropertyTree();
final GeoPoint geoPointValue = GeoPoint.from("80,80");
properties.addGeoPoint("myGeoPoint", geoPointValue);
MapGenerator generator = Mockito.mock(MapGenerator.class);
new PropertyTreeMapper(true, properties).serialize(generator);
Mockito.verify(generator).rawValue("myGeoPoint", geoPointValue);
}
use of com.enonic.xp.script.serializer.MapGenerator in project xp by enonic.
the class PropertyTreeMapperTest method raw_values.
@Test
public void raw_values() throws Exception {
final PropertyTree properties = new PropertyTree();
final GeoPoint geoPointValue = GeoPoint.from("80,80");
properties.addGeoPoint("myGeoPoint", geoPointValue);
MapGenerator generator = Mockito.mock(MapGenerator.class);
new PropertyTreeMapper(true, properties).serialize(generator);
Mockito.verify(generator).rawValue("myGeoPoint", geoPointValue);
}
Aggregations