Author: tommaso
Date: Fri Nov 18 09:48:26 2011
New Revision: 1203556

URL: http://svn.apache.org/viewvc?rev=1203556&view=rev
Log:
[HAMA-477] - adding ShortestPath first tests

Added:
    
incubator/hama/trunk/examples/src/test/java/org/apache/hama/examples/ShortestPathsTest.java
   (with props)

Added: 
incubator/hama/trunk/examples/src/test/java/org/apache/hama/examples/ShortestPathsTest.java
URL: 
http://svn.apache.org/viewvc/incubator/hama/trunk/examples/src/test/java/org/apache/hama/examples/ShortestPathsTest.java?rev=1203556&view=auto
==============================================================================
--- 
incubator/hama/trunk/examples/src/test/java/org/apache/hama/examples/ShortestPathsTest.java
 (added)
+++ 
incubator/hama/trunk/examples/src/test/java/org/apache/hama/examples/ShortestPathsTest.java
 Fri Nov 18 09:48:26 2011
@@ -0,0 +1,21 @@
+package org.apache.hama.examples;
+
+import org.junit.Test;
+
+import static org.junit.Assert.fail;
+
+/**
+ * @author tommaso
+ */
+public class ShortestPathsTest {
+
+  @Test
+  public void testShortestPathsWithWrongArgs() {
+    try {
+      ShortestPaths.main(new String[]{"1", ".", "."});
+      fail("ShortestPaths should fail if the arguments list contains wrong 
items");
+    } catch (Exception e) {
+      // everything ok
+    }
+  }
+}

Propchange: 
incubator/hama/trunk/examples/src/test/java/org/apache/hama/examples/ShortestPathsTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/hama/trunk/examples/src/test/java/org/apache/hama/examples/ShortestPathsTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: 
incubator/hama/trunk/examples/src/test/java/org/apache/hama/examples/ShortestPathsTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain


Reply via email to