Author: jm
Date: 2012-10-31 12:48:17 -0700 (Wed, 31 Oct 2012)
New Revision: 30726

Modified:
   
core3/impl/trunk/core-task-impl/src/test/java/org/cytoscape/task/internal/table/JoinTablesTaskTest.java
Log:
Fixed really weird static state in JoinTablesTaskTest.  This was causing 
failures on Ubuntu.

Modified: 
core3/impl/trunk/core-task-impl/src/test/java/org/cytoscape/task/internal/table/JoinTablesTaskTest.java
===================================================================
--- 
core3/impl/trunk/core-task-impl/src/test/java/org/cytoscape/task/internal/table/JoinTablesTaskTest.java
     2012-10-31 19:48:14 UTC (rev 30725)
+++ 
core3/impl/trunk/core-task-impl/src/test/java/org/cytoscape/task/internal/table/JoinTablesTaskTest.java
     2012-10-31 19:48:17 UTC (rev 30726)
@@ -48,14 +48,13 @@
        private String node1Name = "node1";
        private String node2Name = "node2";
 
-       private static CyEventHelper eventHelper = new DummyCyEventHelper();
-       private static CyNetworkManagerImpl netMgr = new 
CyNetworkManagerImpl(eventHelper);
-       private static CyRootNetworkManagerImpl rootNetMgr = new 
CyRootNetworkManagerImpl();
+       private CyEventHelper eventHelper = new DummyCyEventHelper();
+       private CyNetworkManagerImpl netMgr = new 
CyNetworkManagerImpl(eventHelper);
+       private CyRootNetworkManagerImpl rootNetMgr = new 
CyRootNetworkManagerImpl();
 
-       private static SyncTunableMutator stm = new SyncTunableMutator();
-       private static SyncTunableHandlerFactory syncTunableHandlerFactory = 
new SyncTunableHandlerFactory();
-       private static TunableSetterImpl ts = new TunableSetterImpl(
-                       new 
SyncTunableMutatorFactory(syncTunableHandlerFactory), new 
TunableRecorderManager());
+       private SyncTunableMutator stm = new SyncTunableMutator();
+       private SyncTunableHandlerFactory syncTunableHandlerFactory = new 
SyncTunableHandlerFactory();
+       private TunableSetterImpl ts = new TunableSetterImpl(new 
SyncTunableMutatorFactory(syncTunableHandlerFactory), new 
TunableRecorderManager());
        Properties syncFactoryProp = new Properties();
 
 
@@ -192,7 +191,7 @@
                return table1;
        }
 
-       public static void join(CyTable table, CyNetwork net, CyRootNetwork 
rootNet, CyColumn col, boolean selectedOnly)
+       public void join(CyTable table, CyNetwork net, CyRootNetwork rootNet, 
CyColumn col, boolean selectedOnly)
                        throws Exception {
                JoinTablesTaskTaskFactoryImpl joinTableTF = new 
JoinTablesTaskTaskFactoryImpl(netMgr, ts, rootNetMgr);
                List<CyNetwork> nets = new ArrayList<CyNetwork>();

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to