@Test public void testUnmarshallWithoutNullRegistry() { MarshallerHelper helper = new MarshallerHelper(null); QueryFilterSpec expectedQueryFilterSpec = new QueryFilterSpecBuilder().get(); String marshalledQFS = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>" + "<query-filter-spec>" + "<order-asc>false</order-asc>" + "</query-filter-spec>"; QueryFilterSpec unmarshalledQFS = helper.unmarshal(marshalledQFS, MarshallingFormat.JAXB.toString(), QueryFilterSpec.class); assertThat(expectedQueryFilterSpec, new ReflectionEquals(unmarshalledQFS)); }
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);  }