@Test public void testJsonUnmarshallTaskQueryFilterSpec() { TaskQueryFilterSpec expectedTaskQfs = new TaskQueryFilterSpecBuilder().get(); MarshallerHelper helper = new MarshallerHelper(null); String marshalledQFS = "{\"order-by\" : null, \"order-asc\" : false, \"query-params\" : null}"; TaskQueryFilterSpec unmarshalledTaskQfs = helper.unmarshal(marshalledQFS, MarshallingFormat.JSON.toString(), TaskQueryFilterSpec.class); assertThat(expectedTaskQfs, new ReflectionEquals(unmarshalledTaskQfs)); }
public <T> T unmarshal(String containerId, String data, String marshallingFormat, Class<T> unmarshalType) { return unmarshal(containerId, data, marshallingFormat, unmarshalType, ContainerLocatorProvider.get().getLocator()); }
MarshallerHelper { public <T> T unmarshal(String containerId, String data, String marshallingFormat, Class<T> unmarshalType) { return unmarshal(containerId, data, marshallingFormat, unmarshalType, ContainerLocatorProvider.get().getLocator()); } }
MarshallerHelper { public <T> T unmarshal(String containerId, String data, String marshallingFormat, Class<T> unmarshalType) { return unmarshal(containerId, data, marshallingFormat, unmarshalType, ContainerLocatorProvider.get().getLocator()); } MarshallerHelper(KieServerRegistry registry); }
MarshallerHelper { public <T> T unmarshal(String containerId, String data, String marshallingFormat, Class<T> unmarshalType) { return unmarshal(containerId, data, marshallingFormat, unmarshalType, ContainerLocatorProvider.get().getLocator()); } MarshallerHelper(KieServerRegistry registry); KieServerRegistry getRegistry(); String marshal(String containerId, String marshallingFormat, Object entity); String marshal(String containerId, String marshallingFormat, Object entity, ContainerLocator locator); String marshal(String marshallingFormat, Object entity); T unmarshal(String containerId, String data, String marshallingFormat, Class<T> unmarshalType); T unmarshal(String containerId, String data, String marshallingFormat, Class<T> unmarshalType, ContainerLocator locator); T unmarshal(String data, String marshallingFormat, Class<T> unmarshalType); static MarshallingFormat getFormat(String descriptor); }
MarshallerHelper { public <T> T unmarshal(String containerId, String data, String marshallingFormat, Class<T> unmarshalType) { return unmarshal(containerId, data, marshallingFormat, unmarshalType, ContainerLocatorProvider.get().getLocator()); } MarshallerHelper(KieServerRegistry registry); KieServerRegistry getRegistry(); String marshal(String containerId, String marshallingFormat, Object entity); String marshal(String containerId, String marshallingFormat, Object entity, ContainerLocator locator); String marshal(String marshallingFormat, Object entity); T unmarshal(String containerId, String data, String marshallingFormat, Class<T> unmarshalType); T unmarshal(String containerId, String data, String marshallingFormat, Class<T> unmarshalType, ContainerLocator locator); T unmarshal(String data, String marshallingFormat, Class<T> unmarshalType); static MarshallingFormat getFormat(String descriptor);  }