Package org.zanata.webtrans.shared.rpc

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


                            tf);
            items.add(memoryDetails);
        }

        log.info("Returning {} TM details", items.size());
        return new TransMemoryDetailsList(items);
    }
View Full Code Here


                    "target " + i + " comment", "workspace " + i, "iteration "
                            + i, "doc id:" + +i, "resId", "msgContext",
                    ContentState.Approved, "Bob", new Date()));
        }

        callback.onSuccess(new TransMemoryDetailsList(items));
        Log.info("EXIT DummyGetTransMemoryDetailsCommand.execute()");

    }
View Full Code Here

        // testing on callback success
        TransMemoryDetails details =
                new TransMemoryDetails("source comment", "target comment",
                        "project", "iteration", "docId", "resId", "msgContext",
                        ContentState.Approved, "admin", lastModifiedDate);
        callback.onSuccess(new TransMemoryDetailsList(Lists
                .newArrayList(details)));

        InOrder inOrder = Mockito.inOrder(display);
        inOrder.verify(display).clearSourceAndTarget();
        inOrder.verify(display).setSource(
View Full Code Here

                        ContentState.Approved, "admin", lastModifiedDate);
        TransMemoryDetails details2 =
                new TransMemoryDetails("source comment2", "target comment2",
                        "project", "2", "docId2", "resId", "msgContext",
                        ContentState.Approved, null, lastModifiedDate);
        presenter.setStatForTesting(new TransMemoryDetailsList(Lists
                .newArrayList(details1, details2)));

        // When: selecting second one
        when(display.getSelectedDocumentIndex()).thenReturn(1);
        presenter.onDocumentListBoxChanged();
View Full Code Here

        setProjectAndIterationSlug(hTextFlow2, "project 2", "beta");
        addHTextFlowTarget(hLocale, hTextFlow2, null);
        when(textFlowDAO.findByIdList(Lists.newArrayList(1L, 2L))).thenReturn(
                Lists.newArrayList(hTextFlow1, hTextFlow2));

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

        verify(identity).checkLoggedIn();
        assertThat(result.getItems(), Matchers.hasSize(2));
    }
View Full Code Here

TOP

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

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.