- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
CaseServicesClient.class); String responseBody = caseServicesClient.startCase(containerId, caseDefId, new StringContentCaseFile(body)); resp.getOutputStream().write(responseBody.getBytes("UTF-8")); } else {
CaseServicesClient.class); String responseBody = caseServicesClient.startCase(containerId, caseDefId, new StringContentCaseFile(body)); resp.getOutputStream().write(responseBody.getBytes("UTF-8")); } else {
@Test public void testStringContentCaseFile() { Set<Class<?>> extraClasses = new HashSet<Class<?>>(); Marshaller marshaller = MarshallerFactory.getMarshaller(extraClasses, MarshallingFormat.JSON, this.getClass().getClassLoader()); String jsonMap = "{\n" + " \"case-data\" : {\n" + " \"yearsOfService\" : 1\n" + " },\n" + " \"case-user-assignments\" : {\n" + " },\n" + " \"case-group-assignments\" : {\n" + " }\n" + "}"; StringContentCaseFile map = new StringContentCaseFile(jsonMap); // content must be of exact value as given in constructor String marshall = marshaller.marshall(map); assertEquals(jsonMap, marshall); } }