[logback-dev] svn commit: r745 - 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 20:02:10 CEST 2006


Author: seb
Date: Mon Oct 23 20:02:10 2006
New Revision: 745

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

Log:
added a setter for eventlist

Modified: logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/replay/FruitFactory.java
==============================================================================
--- logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/replay/FruitFactory.java	(original)
+++ logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/replay/FruitFactory.java	Mon Oct 23 20:02:10 2006
@@ -11,7 +11,7 @@
 
   static int count = 0;
   
-  List<SaxEvent> eventList;
+  private List<SaxEvent> eventList;
   Fruit fruit;
   
   public void setFruit(Fruit fruit) {
@@ -51,4 +51,8 @@
     return retValue.toString();
   }
 
+  public void setEventList(List<SaxEvent> eventList) {
+    this.eventList = eventList;
+  }
+
 }

Modified: logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/replay/FruitFactoryAction.java
==============================================================================
--- logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/replay/FruitFactoryAction.java	(original)
+++ logback/trunk/logback-core/src/test/java/ch/qos/logback/core/joran/replay/FruitFactoryAction.java	Mon Oct 23 20:02:10 2006
@@ -39,7 +39,7 @@
     if(o instanceof FruitShell) {
       FruitShell fs = (FruitShell) o;
       FruitFactory fruitFactory = new FruitFactory();
-      fruitFactory.eventList = new ArrayList<SaxEvent>(seList);
+      fruitFactory.setEventList(new ArrayList<SaxEvent>(seList));
       fs.setFruitFactory(fruitFactory);
     }
   }



More information about the logback-dev mailing list