mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Check the message content
This commit is contained in:
parent
1e30f76d6e
commit
b961791b6c
1 changed files with 2 additions and 2 deletions
|
|
@ -79,14 +79,14 @@ public class ScioInterpreterTest {
|
|||
public void testBasicSyntaxError() {
|
||||
InterpreterResult error = repl.interpret("val a:Int = 'ds'", context);
|
||||
assertEquals(InterpreterResult.Code.ERROR, error.code());
|
||||
assertTrue(error.message().length() > 0);
|
||||
assertEquals("Interpreter error", error.message());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testBasicIncomplete() {
|
||||
InterpreterResult incomplete = repl.interpret("val a = \"\"\"", context);
|
||||
assertEquals(InterpreterResult.Code.INCOMPLETE, incomplete.code());
|
||||
assertTrue(incomplete.message().length() > 0);
|
||||
assertEquals("Incomplete expression", incomplete.message());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Reference in a new issue