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

Commit

Permalink
Fix line too long
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Jul 18, 2013
1 parent b83d22e commit 3799cde
Showing 1 changed file with 30 additions and 6 deletions.
Expand Up @@ -126,7 +126,9 @@ public void testExecuteToGetAll() throws Exception
@Test
public void testExecuteWithStatusFilterOnly() throws Exception
{
GetTransUnitList action = GetTransUnitList.newAction(new GetTransUnitActionContext(document).changeFilterFuzzy(true).changeFilterUntranslated(true));
GetTransUnitList action = GetTransUnitList.newAction(new GetTransUnitActionContext(document)
.changeFilterFuzzy(true)
.changeFilterUntranslated(true));
prepareActionAndMockLocaleService(action);

GetTransUnitListResult result = handler.execute(action, null);
Expand Down Expand Up @@ -156,7 +158,10 @@ public void testExecuteWithSearchOnly() throws Exception
{
// Given: we want to search for file (mixed case) and we change page size
// to 10 and start from index 2
GetTransUnitList action = GetTransUnitList.newAction(new GetTransUnitActionContext(document).changeFindMessage("FiLe").changeCount(10).changeOffset(1));
GetTransUnitList action = GetTransUnitList.newAction(new GetTransUnitActionContext(document)
.changeFindMessage("FiLe")
.changeCount(10)
.changeOffset(1));
prepareActionAndMockLocaleService(action);

// When:
Expand All @@ -174,7 +179,10 @@ public void testExecuteWithSearchAndStatusFilter() throws Exception
{
// Given: we want to search for file (mixed case) in fuzzy and
// untranslated text flows
GetTransUnitList action = GetTransUnitList.newAction(new GetTransUnitActionContext(document).changeFindMessage("FiLe").changeFilterUntranslated(true).changeFilterFuzzy(true));
GetTransUnitList action = GetTransUnitList.newAction(new GetTransUnitActionContext(document)
.changeFindMessage("FiLe")
.changeFilterUntranslated(true)
.changeFilterFuzzy(true));
prepareActionAndMockLocaleService(action);

// When:
Expand All @@ -190,7 +198,11 @@ public void testExecuteWithSearchAndStatusFilter() throws Exception
@Test
public void testExecuteWithSearchAndStatusFilter2() throws Exception
{
GetTransUnitList action = GetTransUnitList.newAction(new GetTransUnitActionContext(document).changeFindMessage("FiLe").changeFilterUntranslated(true).changeFilterFuzzy(true).changeFilterHasError(true));
GetTransUnitList action = GetTransUnitList.newAction(new GetTransUnitActionContext(document)
.changeFindMessage("FiLe")
.changeFilterUntranslated(true)
.changeFilterFuzzy(true)
.changeFilterHasError(true));
prepareActionAndMockLocaleService(action);

// When:
Expand All @@ -212,7 +224,13 @@ public void testExecuteWithPageSize() throws Exception
int offset = 76;
int countPerPage = 25;

GetTransUnitList action = GetTransUnitList.newAction(new GetTransUnitActionContext(document).changeFindMessage("FiLe").changeFilterUntranslated(true).changeFilterFuzzy(true).changeFilterHasError(true).changeOffset(offset).changeCount(countPerPage));
GetTransUnitList action = GetTransUnitList.newAction(new GetTransUnitActionContext(document)
.changeFindMessage("FiLe")
.changeFilterUntranslated(true)
.changeFilterFuzzy(true)
.changeFilterHasError(true)
.changeOffset(offset)
.changeCount(countPerPage));

prepareActionAndMockLocaleService(action);

Expand All @@ -239,7 +257,13 @@ public void testExecuteWithPageSizeNeedReload() throws Exception
idIndexList.add(new TransUnitId(i));
}

GetTransUnitList action = GetTransUnitList.newAction(new GetTransUnitActionContext(document).changeFindMessage("FiLe").changeFilterUntranslated(true).changeFilterFuzzy(true).changeFilterHasError(true).changeOffset(offset).changeCount(countPerPage));
GetTransUnitList action = GetTransUnitList.newAction(new GetTransUnitActionContext(document)
.changeFindMessage("FiLe")
.changeFilterUntranslated(true)
.changeFilterFuzzy(true)
.changeFilterHasError(true)
.changeOffset(offset)
.changeCount(countPerPage));
action.setNeedReloadIndex(true);

prepareActionAndMockLocaleService(action);
Expand Down

0 comments on commit 3799cde

Please sign in to comment.