Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
rhbz844820 - fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Aug 23, 2012
1 parent cb98362 commit 8ef09bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Expand Up @@ -413,7 +413,15 @@ private IAnswer<GetProjectTransUnitListsResult> buildSingleTextFlowResponse()

final Map<Long, List<TransUnit>> documents = new HashMap<Long, List<TransUnit>>();
List<TransUnit> docs = new ArrayList<TransUnit>();
docs.add(TransUnit.Builder.newTransUnitBuilder().setId(TEST_TU_ID_1).setResId(TEST_RES_ID_1).setLocaleId(TEST_LOCALE_ID).setVerNum(TEST_VERNUM_1).addSource(TEST_SOURCE_STRING_1).addTargets(TEST_TARGET_STRING_1).build());
docs.add(TransUnit.Builder.newTransUnitBuilder()
.setId(TEST_TU_ID_1)
.setResId(TEST_RES_ID_1)
.setLocaleId(TEST_LOCALE_ID)
.setRowIndex(0)
.setVerNum(TEST_VERNUM_1)
.addSource(TEST_SOURCE_STRING_1)
.addTargets(TEST_TARGET_STRING_1)
.build());
documents.put(TEST_DOC_ID_1, docs);

return buildSuccessSearchResponse(docPaths, documents);
Expand Down
Expand Up @@ -60,7 +60,7 @@ public void beforeMethod()
handler.updateTransUnitHandler = mockUpdateTransUnitHandler;
handler.securityServiceImpl = mockSecurityService;
transUnitBuilder = TransUnit.Builder.newTransUnitBuilder()
.setId(1).setResId("").setLocaleId("en-US").setVerNum(1).addSource("abc");
.setId(1).setResId("").setLocaleId("en-US").setVerNum(1).addSource("abc").setVerNum(0).setRowIndex(0);
}

@Test
Expand Down

0 comments on commit 8ef09bf

Please sign in to comment.