hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomm...@apache.org
Subject svn commit: r1203556 - /incubator/hama/trunk/examples/src/test/java/org/apache/hama/examples/ShortestPathsTest.java
Date Fri, 18 Nov 2011 09:48:26 GMT
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



Mime
View raw message