findbugs
[utils] / system / general / src / test / java / org / wamblee / system / adapters / AdapterTestCase.java
index cf67b247b481c45c5f41240c001ad7387409c51c..7ca8b96b2cad1ce176a5f41ab3811a0080e083bc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2008 the original author or authors.
+ * Copyright 2005-2010 the original author or authors.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  */ 
 package org.wamblee.system.adapters;
 
+import junit.framework.TestCase;
+
 import org.wamblee.system.core.DefaultScope;
 import org.wamblee.system.core.ProvidedInterface;
 import org.wamblee.system.core.Scope;
-import org.wamblee.test.EventTracker;
 
-import junit.framework.TestCase;
+import org.wamblee.test.EventTracker;
 
+/**
+ * 
+ * @author $author$
+ * @version $Revision$
+ */
 public class AdapterTestCase extends TestCase {
-       
-       protected Scope _scope;
-       static EventTracker<String> EVENT_TRACKER;
+    private static EventTracker<String> EVENT_TRACKER;
 
-       @Override
-       protected void setUp() throws Exception {
-               super.setUp();
-               EVENT_TRACKER = new EventTracker<String>();
-               _scope = new DefaultScope(new ProvidedInterface[0]);
-       }
+    private Scope scope;
 
+    protected Scope getScope() {  
+        return scope; 
+    }
+    
+    public static EventTracker<String> getEventTracker() {
+        return EVENT_TRACKER;
+    }
+    
+    private static void setEventTracker(EventTracker<String> aTracker) { 
+        EVENT_TRACKER = aTracker;
+    }
+    
+    @Override
+    protected void setUp() throws Exception {
+        super.setUp();
+        setEventTracker(new EventTracker<String>());
+        scope = new DefaultScope(new ProvidedInterface[0]);
+    }
 }