@Test public void testJsonMarshallWithNullRegistry() throws Exception { MarshallerHelper helper = new MarshallerHelper(null); QueryFilterSpec queryFilterSpec = new QueryFilterSpecBuilder().get(); String marshalledQFS = helper.marshal(MarshallingFormat.JSON.toString(), queryFilterSpec); System.out.println(marshalledQFS); String expectedMarshalledTEC = "{\"order-by\" : null, \"order-asc\" : false, \"query-params\" : null, \"result-column-mapping\" : null}"; JSONAssert.assertEquals(expectedMarshalledTEC, marshalledQFS, false); }
public String marshal(String containerId, String marshallingFormat, Object entity) { return marshal(containerId, marshallingFormat, entity, ContainerLocatorProvider.get().getLocator()); }
MarshallerHelper { public String marshal(String containerId, String marshallingFormat, Object entity) { return marshal(containerId, marshallingFormat, entity, ContainerLocatorProvider.get().getLocator()); } }
MarshallerHelper { public String marshal(String containerId, String marshallingFormat, Object entity) { return marshal(containerId, marshallingFormat, entity, ContainerLocatorProvider.get().getLocator()); } MarshallerHelper(KieServerRegistry registry); }
MarshallerHelper { public String marshal(String containerId, String marshallingFormat, Object entity) { return marshal(containerId, marshallingFormat, entity, 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 String marshal(String containerId, String marshallingFormat, Object entity) { return marshal(containerId, marshallingFormat, entity, 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);  }