commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1329157 - /commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/GraphSerializationTestCase.java
Date Mon, 23 Apr 2012 10:05:25 GMT
Author: simonetripodi
Date: Mon Apr 23 10:05:25 2012
New Revision: 1329157

URL: http://svn.apache.org/viewvc?rev=1329157&view=rev
Log:
CommonsGraph static methods imported statically 

Modified:
    commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/GraphSerializationTestCase.java

Modified: commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/GraphSerializationTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/GraphSerializationTestCase.java?rev=1329157&r1=1329156&r2=1329157&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/GraphSerializationTestCase.java
(original)
+++ commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/model/GraphSerializationTestCase.java
Mon Apr 23 10:05:25 2012
@@ -22,6 +22,8 @@ package org.apache.commons.graph.model;
 import static junit.framework.Assert.assertEquals;
 import static org.apache.commons.graph.CommonsGraph.newDirectedMutableGraph;
 import static org.apache.commons.graph.CommonsGraph.newUndirectedMutableGraph;
+import static org.apache.commons.graph.CommonsGraph.populate;
+import static org.apache.commons.graph.CommonsGraph.synchronize;
 
 import java.io.File;
 import java.io.FileInputStream;
@@ -32,7 +34,6 @@ import java.io.ObjectInputStream;
 import java.io.ObjectOutputStream;
 import java.io.Serializable;
 
-import org.apache.commons.graph.CommonsGraph;
 import org.apache.commons.graph.Graph;
 import org.apache.commons.graph.MutableGraph;
 import org.apache.commons.graph.builder.AbstractGraphConnection;
@@ -106,7 +107,7 @@ public class GraphSerializationTestCase
                                                                                         
        new DoubleWeightBaseOperations(),
                                                                                         
        new BaseWeightedEdge<Double>() );
 
-        CommonsGraph.populate( spanningTree ).withConnections( buildWeightedGraphConnections()
);
+        populate( spanningTree ).withConnections( buildWeightedGraphConnections() );
 
         checkSerialization( spanningTree );
     }
@@ -116,7 +117,7 @@ public class GraphSerializationTestCase
         throws Exception
     {
         Graph<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>> g =
-            CommonsGraph.synchronize( (MutableGraph<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>>)
newDirectedMutableGraph( buildWeightedGraphConnections() ) );
+            synchronize( (MutableGraph<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>>)
newDirectedMutableGraph( buildWeightedGraphConnections() ) );
 
         checkSerialization( g );
     }



Mime
View raw message