flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject [1/3] git commit: [FLINK-1077] Improved error message if test fails
Date Sun, 21 Sep 2014 18:27:26 GMT
Repository: incubator-flink
Updated Branches:
  refs/heads/master 786184917 -> 7f946cee6


[FLINK-1077] Improved error message if test fails

This closes #120


Project: http://git-wip-us.apache.org/repos/asf/incubator-flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-flink/commit/e17575b5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-flink/tree/e17575b5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-flink/diff/e17575b5

Branch: refs/heads/master
Commit: e17575b50505be2416b9850dac2465695cdafa1b
Parents: 7861849
Author: twalthr <info@twalthr.com>
Authored: Tue Sep 16 14:05:40 2014 +0200
Committer: Stephan Ewen <sewen@apache.org>
Committed: Sun Sep 21 19:49:39 2014 +0200

----------------------------------------------------------------------
 .../org/apache/flink/client/CliFrontendPackageProgramTest.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/e17575b5/flink-clients/src/test/java/org/apache/flink/client/CliFrontendPackageProgramTest.java
----------------------------------------------------------------------
diff --git a/flink-clients/src/test/java/org/apache/flink/client/CliFrontendPackageProgramTest.java
b/flink-clients/src/test/java/org/apache/flink/client/CliFrontendPackageProgramTest.java
index 51c7f2f..a3bb6f2 100644
--- a/flink-clients/src/test/java/org/apache/flink/client/CliFrontendPackageProgramTest.java
+++ b/flink-clients/src/test/java/org/apache/flink/client/CliFrontendPackageProgramTest.java
@@ -25,6 +25,7 @@ import static org.apache.flink.client.CliFrontendTestUtils.getNonJarFilePath;
 import static org.apache.flink.client.CliFrontendTestUtils.getTestJarPath;
 import static org.apache.flink.client.CliFrontendTestUtils.pipeSystemOutToNull;
 import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.fail;
 import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
@@ -246,7 +247,7 @@ public class CliFrontendPackageProgramTest {
 			ClassLoader testClassLoader = new ClassLoader(prog.getUserCodeClassLoader()) {
 				@Override
 				public Class<?> loadClass(String name) throws ClassNotFoundException {
-					assertTrue(name.equals("org.apache.hadoop.hive.ql.io.RCFileInputFormat"));
+					assertEquals("org.apache.hadoop.hive.ql.io.RCFileInputFormat", name);
 					callme[0] = true;
 					return String.class; // Intentionally return the wrong class.
 				}


Mime
View raw message