commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1298199 - in /commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph: shortestpath/ spanning/
Date Wed, 07 Mar 2012 23:11:43 GMT
Author: simonetripodi
Date: Wed Mar  7 23:11:43 2012
New Revision: 1298199

URL: http://svn.apache.org/viewvc?rev=1298199&view=rev
Log:
test update after latest APIs change

Modified:
    commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/AStarTestCase.java
    commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/BellmannFordTestCase.java
    commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/DijkstraTestCase.java
    commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/FloydWarshallTestCase.java
    commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/BoruvkaTestCase.java
    commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/KruskalTestCase.java
    commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/PrimTestCase.java
    commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/ReverseDeleteTestCase.java

Modified: commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/AStarTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/AStarTestCase.java?rev=1298199&r1=1298198&r2=1298199&view=diff
==============================================================================
--- commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/AStarTestCase.java
(original)
+++ commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/AStarTestCase.java
Wed Mar  7 23:11:43 2012
@@ -209,8 +209,7 @@ public final class AStarTestCase
         // expected path
 
         InMemoryWeightedPath<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double> expected =
-            new InMemoryWeightedPath<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( start, goal,
-                                                                                        
         new DoubleWeightBaseOperations() );
+            new InMemoryWeightedPath<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( start, goal, new DoubleWeightBaseOperations(), new BaseWeightedEdge<Double>()
);
 
         expected.addConnectionInTail( start, new BaseLabeledWeightedEdge<Double>( "start
<-> a", 1.5D ), a );
         expected.addConnectionInTail( a, new BaseLabeledWeightedEdge<Double>( "a <->
b", 2D ), b );

Modified: commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/BellmannFordTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/BellmannFordTestCase.java?rev=1298199&r1=1298198&r2=1298199&view=diff
==============================================================================
--- commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/BellmannFordTestCase.java
(original)
+++ commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/BellmannFordTestCase.java
Wed Mar  7 23:11:43 2012
@@ -155,7 +155,7 @@ public final class BellmannFordTestCase
 
         // the expected weighted path
         InMemoryWeightedPath<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double> expected =
-            new InMemoryWeightedPath<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( one, three, new DoubleWeightBaseOperations() );
+            new InMemoryWeightedPath<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( one, three, new DoubleWeightBaseOperations(), new BaseWeightedEdge<Double>()
);
         expected.addConnectionInTail( one, new BaseLabeledWeightedEdge<Double>( "1
-> 4", 7D ), four );
         expected.addConnectionInTail( four, new BaseLabeledWeightedEdge<Double>( "4
-> 3", -3D ), three );
 

Modified: commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/DijkstraTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/DijkstraTestCase.java?rev=1298199&r1=1298198&r2=1298199&view=diff
==============================================================================
--- commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/DijkstraTestCase.java
(original)
+++ commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/DijkstraTestCase.java
Wed Mar  7 23:11:43 2012
@@ -141,7 +141,7 @@ public final class DijkstraTestCase
         // expected path
 
         InMemoryWeightedPath<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double> expected =
-            new InMemoryWeightedPath<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( one, five, new DoubleWeightBaseOperations() );
+            new InMemoryWeightedPath<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( one, five, new DoubleWeightBaseOperations(), new BaseWeightedEdge<Double>()
);
 
         expected.addConnectionInTail( one, new BaseLabeledWeightedEdge<Double>( "1
-> 3", 9D ), three );
         expected.addConnectionInTail( three, new BaseLabeledWeightedEdge<Double>( "3
-> 6", 2D ), six );

Modified: commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/FloydWarshallTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/FloydWarshallTestCase.java?rev=1298199&r1=1298198&r2=1298199&view=diff
==============================================================================
--- commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/FloydWarshallTestCase.java
(original)
+++ commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/shortestpath/FloydWarshallTestCase.java
Wed Mar  7 23:11:43 2012
@@ -143,7 +143,7 @@ public class FloydWarshallTestCase
 
             // Expected
             InMemoryWeightedPath<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double> expected =
-                new InMemoryWeightedPath<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( one, six, new DoubleWeightBaseOperations() );
+                new InMemoryWeightedPath<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( one, six, new DoubleWeightBaseOperations(), new BaseWeightedEdge<Double>()
);
             expected.addConnectionInTail( one, new BaseLabeledWeightedEdge<Double>(
"1 -> 3", 9D ), three );
             expected.addConnectionInTail( three, new BaseLabeledWeightedEdge<Double>(
"3 -> 6", 2D ), six );
 
@@ -171,7 +171,7 @@ public class FloydWarshallTestCase
             }
 
             InMemoryWeightedPath<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double> expected =
-                new InMemoryWeightedPath<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( one, six, new DoubleWeightBaseOperations() );
+                new InMemoryWeightedPath<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( one, six, new DoubleWeightBaseOperations(), new BaseWeightedEdge<Double>()
);
             expected.addConnectionInTail( one, new BaseLabeledWeightedEdge<Double>(
"1 -> 3", 9D ), three );
             expected.addConnectionInTail( three, new BaseLabeledWeightedEdge<Double>(
"3 -> 6", 2D ), six );
 

Modified: commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/BoruvkaTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/BoruvkaTestCase.java?rev=1298199&r1=1298198&r2=1298199&view=diff
==============================================================================
--- commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/BoruvkaTestCase.java
(original)
+++ commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/BoruvkaTestCase.java
Wed Mar  7 23:11:43 2012
@@ -144,7 +144,7 @@ public final class BoruvkaTestCase
         // expected
 
         MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double> expected =
-            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations() );
+            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations(), new BaseWeightedEdge<Double>() );
 
         for ( BaseLabeledVertex vertex : input.getVertices() )
         {

Modified: commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/KruskalTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/KruskalTestCase.java?rev=1298199&r1=1298198&r2=1298199&view=diff
==============================================================================
--- commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/KruskalTestCase.java
(original)
+++ commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/KruskalTestCase.java
Wed Mar  7 23:11:43 2012
@@ -150,7 +150,7 @@ public final class KruskalTestCase
         // expected
 
         MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double> expected =
-            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations() );
+            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations(), new BaseWeightedEdge<Double>() );
 
         for ( BaseLabeledVertex vertex : input.getVertices() )
         {
@@ -205,7 +205,7 @@ public final class KruskalTestCase
         // expected
 
         MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double> expected =
-            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations() );
+            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations(), new BaseWeightedEdge<Double>() );
 
         for ( BaseLabeledVertex vertex : input.getVertices() )
         {

Modified: commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/PrimTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/PrimTestCase.java?rev=1298199&r1=1298198&r2=1298199&view=diff
==============================================================================
--- commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/PrimTestCase.java
(original)
+++ commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/PrimTestCase.java
Wed Mar  7 23:11:43 2012
@@ -145,7 +145,7 @@ public final class PrimTestCase
         // expected
 
         MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double> expected =
-            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations() );
+            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations(), new BaseWeightedEdge<Double>() );
 
         for ( BaseLabeledVertex vertex : input.getVertices() )
         {
@@ -211,7 +211,7 @@ public final class PrimTestCase
         // expected
 
         MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double> expected =
-            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations() );
+            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations(), new BaseWeightedEdge<Double>() );
 
         for ( BaseLabeledVertex vertex : input.getVertices() )
         {

Modified: commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/ReverseDeleteTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/ReverseDeleteTestCase.java?rev=1298199&r1=1298198&r2=1298199&view=diff
==============================================================================
--- commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/ReverseDeleteTestCase.java
(original)
+++ commons/sandbox/graph/branches/drop-marker-interfaces-feature/src/test/java/org/apache/commons/graph/spanning/ReverseDeleteTestCase.java
Wed Mar  7 23:11:43 2012
@@ -96,7 +96,7 @@ public class ReverseDeleteTestCase
         // expected
 
         MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double> expected =
-            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations() );
+            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations(), new BaseWeightedEdge<Double>() );
 
         for ( BaseLabeledVertex vertex : input.getVertices() )
         {
@@ -133,7 +133,7 @@ public class ReverseDeleteTestCase
         // expected
 
         MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double> expected =
-            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations() );
+            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations(), new BaseWeightedEdge<Double>() );
 
         for ( BaseLabeledVertex vertex : input.getVertices() )
         {
@@ -178,7 +178,7 @@ public class ReverseDeleteTestCase
         // expected
 
         MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double> expected =
-            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations() );
+            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations(), new BaseWeightedEdge<Double>() );
 
         for ( BaseLabeledVertex vertex : input.getVertices() )
         {
@@ -233,7 +233,7 @@ public class ReverseDeleteTestCase
         // expected
 
         MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double> expected =
-            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations() );
+            new MutableSpanningTree<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double>( new DoubleWeightBaseOperations(), new BaseWeightedEdge<Double>() );
 
         for ( BaseLabeledVertex vertex : input.getVertices() )
         {



Mime
View raw message