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

Commit

Permalink
rhbz953734 - attempt to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed May 29, 2013
1 parent be192c6 commit ea851f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Expand Up @@ -88,9 +88,6 @@ public class StatisticsServiceImpl implements StatisticsResource
@In
private TranslationStateCache translationStateCacheImpl;

@In
private TextFlowTargetDAO textFlowTargetDAO;

@Override
public ContainerTranslationStatistics getStatistics(String projectSlug, String iterationSlug, boolean includeDetails, boolean includeWordStats, String[] locales)
{
Expand Down
Expand Up @@ -73,6 +73,7 @@ public void initializeSeam()
.use("validationServiceImpl", validationServiceImpl)
.useImpl(TranslationStateCacheImpl.class)
.ignoreNonResolvable();
clearHibernateSecondLevelCache();
}

@Test
Expand Down Expand Up @@ -140,7 +141,7 @@ else if( transStat.getUnit() == TranslationStatistics.StatUnit.WORD )
assertThat(wordLevel, is(mssgLevel));
}

@Test
@Test //(enabled = false, description = "this will fail if run together")
public void getDetailedIterationStatisticsForSpecificLocales()
{
String[] locales = new String[]{"en-US", "es", "as"};
Expand All @@ -166,7 +167,7 @@ public void getDetailedIterationStatisticsForSpecificLocales()
}
}

@Test
@Test //(enabled = false, description = "this will fail if run together")
public void getSimpleDocumentStatisticsForAllLocales()
{
StatisticsServiceImpl statisticsService = seam.autowire(StatisticsServiceImpl.class);
Expand Down

0 comments on commit ea851f8

Please sign in to comment.