[logback-dev] svn commit: r749 - logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/replay

noreply.seb at qos.ch noreply.seb at qos.ch
Mon Oct 23 22:06:43 CEST 2006


Author: seb
Date: Mon Oct 23 22:06:43 2006
New Revision: 749

Modified:
   logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/replay/FruitConfigurationTest.java

Log:
bug fix

Modified: logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/replay/FruitConfigurationTest.java
==============================================================================
--- logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/replay/FruitConfigurationTest.java	(original)
+++ logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/replay/FruitConfigurationTest.java	Mon Oct 23 22:06:43 2006
@@ -87,16 +87,17 @@
     FruitShell fs0 = fsList.get(0);
     assertNotNull(fs0);
     assertEquals("fs0", fs0.getName());
+    int oldCount = FruitFactory.count;
     Fruit fruit0 = fs0.fruitFactory.buildFruit();
     assertTrue(fruit0 instanceof WeightytFruit);
-    assertEquals("orange-0", fruit0.getName());
+    assertEquals("orange-"+oldCount, fruit0.getName());
     assertEquals(1.2, ((WeightytFruit) fruit0).getWeight());
   }
   
   public static Test suite() {
     TestSuite suite = new TestSuite();
-    suite.addTest(new FruitConfigurationTest("testWithSubst"));
-    //suite.addTestSuite(FruitConfigurationTest.class);
+    //suite.addTest(new FruitConfigurationTest("testWithSubst"));
+    suite.addTestSuite(FruitConfigurationTest.class);
     return suite;
   }
 }



More information about the logback-dev mailing list