commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c.@apache.org
Subject svn commit: r1299232 - in /commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph: shortestpath/ spanning/
Date Sat, 10 Mar 2012 16:55:41 GMT
Author: cs
Date: Sat Mar 10 16:55:40 2012
New Revision: 1299232

URL: http://svn.apache.org/viewvc?rev=1299232&view=rev
Log:
[SANDBOX-404] fixed error in tests: added cast to null weight operations 

Modified:
    commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/shortestpath/AStarTestCase.java
    commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/shortestpath/BellmannFordTestCase.java
    commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/shortestpath/DijkstraTestCase.java
    commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/BoruvkaTestCase.java
    commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/KruskalTestCase.java
    commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/PrimTestCase.java
    commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/ReverseDeleteTestCase.java

Modified: commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/shortestpath/AStarTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/shortestpath/AStarTestCase.java?rev=1299232&r1=1299231&r2=1299232&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/shortestpath/AStarTestCase.java
(original)
+++ commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/shortestpath/AStarTestCase.java
Sat Mar 10 16:55:40 2012
@@ -95,7 +95,7 @@ public final class AStarTestCase
             fail( e.getMessage() );
         }
 
-        findShortestPath( graph ).from( a ).to( b ).applyingAStar( null ).withHeuristic(
heuristic );
+        findShortestPath( graph ).from( a ).to( b ).applyingAStar( (DoubleWeightBaseOperations)
null ).withHeuristic( heuristic );
     }
 
     @Test( expected = PathNotFoundException.class )

Modified: commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/shortestpath/BellmannFordTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/shortestpath/BellmannFordTestCase.java?rev=1299232&r1=1299231&r2=1299232&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/shortestpath/BellmannFordTestCase.java
(original)
+++ commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/shortestpath/BellmannFordTestCase.java
Sat Mar 10 16:55:40 2012
@@ -74,7 +74,7 @@ public final class BellmannFordTestCase
         }
 
         // the actual weighted path
-        findShortestPath( graph ).from( a ).applyingBelmannFord( null );
+        findShortestPath( graph ).from( a ).applyingBelmannFord( (DoubleWeightBaseOperations)
null );
     }
 
     @Test( expected = PathNotFoundException.class )

Modified: commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/shortestpath/DijkstraTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/shortestpath/DijkstraTestCase.java?rev=1299232&r1=1299231&r2=1299232&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/shortestpath/DijkstraTestCase.java
(original)
+++ commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/shortestpath/DijkstraTestCase.java
Sat Mar 10 16:55:40 2012
@@ -66,7 +66,7 @@ public final class DijkstraTestCase
         graph.addVertex( b );
 
         // the actual weighted path
-        findShortestPath( graph ).from( a ).to( b ).applyingDijkstra( null );
+        findShortestPath( graph ).from( a ).to( b ).applyingDijkstra( (DoubleWeightBaseOperations)
null );
     }
 
     @Test( expected = PathNotFoundException.class )

Modified: commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/BoruvkaTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/BoruvkaTestCase.java?rev=1299232&r1=1299231&r2=1299232&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/BoruvkaTestCase.java
(original)
+++ commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/BoruvkaTestCase.java
Sat Mar 10 16:55:40 2012
@@ -68,7 +68,7 @@ public final class BoruvkaTestCase
             fail( e.getMessage() );
         }
 
-        minimumSpanningTree( input ).fromSource( a ).applyingBoruvkaAlgorithm( null );
+        minimumSpanningTree( input ).fromSource( a ).applyingBoruvkaAlgorithm( (DoubleWeightBaseOperations)
null );
     }
     
     @Test( expected = IllegalStateException.class )

Modified: commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/KruskalTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/KruskalTestCase.java?rev=1299232&r1=1299231&r2=1299232&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/KruskalTestCase.java
(original)
+++ commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/KruskalTestCase.java
Sat Mar 10 16:55:40 2012
@@ -68,7 +68,7 @@ public final class KruskalTestCase
             fail( e.getMessage() );
         }
 
-        minimumSpanningTree( input ).fromSource( a ).applyingKruskalAlgorithm( null );
+        minimumSpanningTree( input ).fromSource( a ).applyingKruskalAlgorithm( (DoubleWeightBaseOperations)
null );
     }
     
     @Test( expected = IllegalStateException.class )

Modified: commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/PrimTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/PrimTestCase.java?rev=1299232&r1=1299231&r2=1299232&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/PrimTestCase.java
(original)
+++ commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/PrimTestCase.java
Sat Mar 10 16:55:40 2012
@@ -68,7 +68,7 @@ public final class PrimTestCase
             fail( e.getMessage() );
         }
 
-        minimumSpanningTree( input ).fromSource( a ).applyingBoruvkaAlgorithm( null );
+        minimumSpanningTree( input ).fromSource( a ).applyingBoruvkaAlgorithm( (DoubleWeightBaseOperations)
null );
     }
     
     @Test( expected = IllegalStateException.class )

Modified: commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/ReverseDeleteTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/ReverseDeleteTestCase.java?rev=1299232&r1=1299231&r2=1299232&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/ReverseDeleteTestCase.java
(original)
+++ commons/sandbox/graph/trunk/src/test/java/org/apache/commons/graph/spanning/ReverseDeleteTestCase.java
Sat Mar 10 16:55:40 2012
@@ -50,7 +50,7 @@ public class ReverseDeleteTestCase
     {
         UndirectedMutableWeightedGraph<BaseLabeledVertex, BaseLabeledWeightedEdge<Double>,
Double> input = null;
 
-        minimumSpanningTree( input ).applyingReverseDeleteAlgorithm( null );
+        minimumSpanningTree( input ).applyingReverseDeleteAlgorithm( (DoubleWeightBaseOperations)
null );
     }
     
     @Test



Mime
View raw message