Package org.jbpm.formbuilder.server.xml

Examples of org.jbpm.formbuilder.server.xml.PropertiesDTO


        assertNotNull("resp.metadata shouldn't be null", resp.getMetadata());
        Object contentType = resp.getMetadata().getFirst(HttpHeaderNames.CONTENT_TYPE);
        assertNotNull("resp.entity shouldn't be null", contentType);
        assertEquals("contentType should be application/xml but is" + contentType, contentType, MediaType.APPLICATION_XML);
        assertTrue("entity should be of type PropertiesDTO", entity instanceof PropertiesDTO);
        PropertiesDTO dto = (PropertiesDTO) entity;
        List<PropertiesItemDTO> properties = dto.getProperty();
        assertNotNull("properties shouldn't be null", properties);
        assertFalse("properties shouldn't be empty", properties.isEmpty());
        assertEquals("properties should have " + retval.size() + " elements but has " + properties.size(), properties.size(), retval.size());
    }
View Full Code Here


    @GET @Path("/mappings")
    public Response getRepresentationMappings() {
        init();
        try {
            Map<String, String> props = menuService.getFormBuilderProperties();
            PropertiesDTO dto = new PropertiesDTO(props);
            return Response.ok(dto, MediaType.APPLICATION_XML).build();
        } catch (MenuServiceException e) {
            return error("Problem reading form builder properties", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.jbpm.formbuilder.server.xml.PropertiesDTO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.