You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/10/03 13:42:37 UTC
svn commit: r1178379 - in
/commons/proper/chain/trunk/src/test/java/org/apache/commons/chain:
config/ConfigParserTestCase.java impl/CatalogFactoryBaseTestCase.java
Author: simonetripodi
Date: Mon Oct 3 11:42:37 2011
New Revision: 1178379
URL: http://svn.apache.org/viewvc?rev=1178379&view=rev
Log:
[CHAIN-60] In certain build configurations unit tests fail with the following message: testDefault: Correct command count expected:<17> but was:<19> - patch contributed by Elijah Zupancic
Modified:
commons/proper/chain/trunk/src/test/java/org/apache/commons/chain/config/ConfigParserTestCase.java
commons/proper/chain/trunk/src/test/java/org/apache/commons/chain/impl/CatalogFactoryBaseTestCase.java
Modified: commons/proper/chain/trunk/src/test/java/org/apache/commons/chain/config/ConfigParserTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/chain/trunk/src/test/java/org/apache/commons/chain/config/ConfigParserTestCase.java?rev=1178379&r1=1178378&r2=1178379&view=diff
==============================================================================
--- commons/proper/chain/trunk/src/test/java/org/apache/commons/chain/config/ConfigParserTestCase.java (original)
+++ commons/proper/chain/trunk/src/test/java/org/apache/commons/chain/config/ConfigParserTestCase.java Mon Oct 3 11:42:37 2011
@@ -25,6 +25,7 @@ import static org.junit.Assert.assertTru
import java.util.Iterator;
import org.apache.commons.chain.Catalog;
+import org.apache.commons.chain.CatalogFactory;
import org.apache.commons.chain.Command;
import org.apache.commons.chain.Context;
import org.apache.commons.chain.impl.AddingCommand;
@@ -84,6 +85,7 @@ public class ConfigParserTestCase {
*/
@Before
public void setUp() {
+ CatalogFactory.clear();
catalog = new CatalogBase();
context = new ContextBase();
parser = new ConfigParser();
Modified: commons/proper/chain/trunk/src/test/java/org/apache/commons/chain/impl/CatalogFactoryBaseTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/chain/trunk/src/test/java/org/apache/commons/chain/impl/CatalogFactoryBaseTestCase.java?rev=1178379&r1=1178378&r2=1178379&view=diff
==============================================================================
--- commons/proper/chain/trunk/src/test/java/org/apache/commons/chain/impl/CatalogFactoryBaseTestCase.java (original)
+++ commons/proper/chain/trunk/src/test/java/org/apache/commons/chain/impl/CatalogFactoryBaseTestCase.java Mon Oct 3 11:42:37 2011
@@ -69,6 +69,7 @@ public class CatalogFactoryBaseTestCase
@After
public void tearDown() {
factory = null;
+ CatalogFactory.clear();
}