Package org.jbpm.formbuilder.server.xml

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


        EasyMock.replay(mocks);
        Response resp = restService.getFiles((HttpServletRequest) mocks[0], "somePackage", new String[] {"tmp"});
        EasyMock.verify(mocks);
        Object objDto = assertXmlOkResponse(resp);
        assertTrue("objDto should be of type FileListDTO", objDto instanceof FileListDTO);
        FileListDTO dto = (FileListDTO) objDto;
        assertNotNull("dto.getFile() shouldn't be null", dto.getFile());
        for (String file : dto.getFile()) {
            assertTrue("retval should contain " + file, retval.contains(file));
        }
        for (String file : retval) {
            assertTrue("dto.getFile() should contain " + file, dto.getFile().contains(file));
        }
    }
View Full Code Here


        EasyMock.replay(mocks);
        Response resp = restService.getFiles((HttpServletRequest) mocks[0], "somePackage", new String[] {"tmp"});
        EasyMock.verify(mocks);
        Object objDto = assertXmlOkResponse(resp);
        assertTrue("objDto should be of type FileListDTO", objDto instanceof FileListDTO);
        FileListDTO dto = (FileListDTO) objDto;
        assertNotNull("dto.getFile() shouldn't be null", dto.getFile());
        assertTrue("dto.getFile() should be empty", dto.getFile().isEmpty());
    }
View Full Code Here

            List<String> allFiles = new ArrayList<String>();
            for (String fileType : fileTypes) {
                allFiles.addAll(fileService.loadFilesByType(packageName, fileType));
            }
            Collections.sort(allFiles);
            FileListDTO dto = new FileListDTO(allFiles);
            return Response.ok(dto, MediaType.APPLICATION_XML).build();
        } catch (FileException e) {
            return error("Problem loading file names", e);
        }
    }
View Full Code Here

TOP

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

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.