Package org.zanata.webtrans.shared.rpc

Examples of org.zanata.webtrans.shared.rpc.GetDocumentListResult


                            null,
                            new AuditInfo(hDoc.getLastChanged(), lastModifiedBy),
                            downloadExtensions, null);
            docs.add(doc);
        }
        return new GetDocumentListResult(iterationId, docs);
    }
View Full Code Here


    @Override
    public void execute() {
        Log.info("ENTER DummyGetDocsListCommand.execute()");
        ProjectIterationId projectIterationId =
                action.getWorkspaceId().getProjectIterationId();
        GetDocumentListResult result =
                new GetDocumentListResult(projectIterationId,
                        generateTransUnitSampleData());
        callback.onSuccess(result);
        Log.info("EXIT DummyGetDocsListCommand.execute()");
    }
View Full Code Here

        List<HDocument> documentList = Arrays.asList(hDocument);

        when(documentDAO.getAllByProjectIteration("project", "master"))
                .thenReturn(documentList);

        GetDocumentListResult result = handler.execute(action, null);

        verify(identity).checkLoggedIn();
        assertThat(result.getDocuments(), Matchers.hasSize(1));
        DocumentInfo documentInfo = result.getDocuments().get(0);
        assertThat(documentInfo.getId(),
                Matchers.equalTo(new DocumentId(new Long(1), "")));
        assertThat(documentInfo.getPath(), Matchers.equalTo("/dot/"));
        assertThat(documentInfo.getName(), Matchers.equalTo("a.po"));
    }
View Full Code Here

        HDocument hDocument = hDocument(1);
        List<HDocument> documentList = Arrays.asList(hDocument);
        when(documentDAO.getAllByProjectIteration("project", "master"))
                .thenReturn(documentList);

        GetDocumentListResult result = handler.execute(action, null);

        assertThat(result.getDocuments(), Matchers.hasSize(1));
    }
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.shared.rpc.GetDocumentListResult

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.