Skip to content

Commit

Permalink
[FLINK-1077] Improved error message if test fails
Browse files Browse the repository at this point in the history
This closes apache#120
  • Loading branch information
twalthr authored and StephanEwen committed Sep 21, 2014
1 parent 7861849 commit e17575b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
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;
Expand Down Expand Up @@ -246,7 +247,7 @@ public void testPlanWithExternalClass() throws CompilerException, ProgramInvocat
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.
}
Expand Down

0 comments on commit e17575b

Please sign in to comment.