diff --git a/zanata-war/src/test/java/org/zanata/webtrans/server/rpc/GetLocaleListHandlerTest.java b/zanata-war/src/test/java/org/zanata/webtrans/server/rpc/GetLocaleListHandlerTest.java index 2542e971b6..25aced5161 100644 --- a/zanata-war/src/test/java/org/zanata/webtrans/server/rpc/GetLocaleListHandlerTest.java +++ b/zanata-war/src/test/java/org/zanata/webtrans/server/rpc/GetLocaleListHandlerTest.java @@ -64,6 +64,7 @@ public void setUp() throws Exception { MockitoAnnotations.initMocks(this); // @formatter:off handler = SeamAutowire.instance() + .reset() .use("identity", identity) .use("projectIterationDAO", projectIterationDAO) .use("projectDAO", projectDAO) diff --git a/zanata-war/src/test/java/org/zanata/webtrans/server/rpc/GetTargetForLocaleHandlerTest.java b/zanata-war/src/test/java/org/zanata/webtrans/server/rpc/GetTargetForLocaleHandlerTest.java index 851fe32d0b..92d84d957a 100644 --- a/zanata-war/src/test/java/org/zanata/webtrans/server/rpc/GetTargetForLocaleHandlerTest.java +++ b/zanata-war/src/test/java/org/zanata/webtrans/server/rpc/GetTargetForLocaleHandlerTest.java @@ -55,6 +55,7 @@ public void setUp() throws Exception { // @formatter:off ResourceUtils resourceUtils = new ResourceUtils(); resourceUtils.create(); // postConstruct + SeamAutowire.instance().reset(); TransUnitTransformer transUnitTransformer = SeamAutowire.instance() .use("resourceUtils", resourceUtils) .autowire(TransUnitTransformer.class);