File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
metafacture-flux/src/test/java/org/metafacture/flux Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,18 @@ public void shouldReplaceJavaEscapeSequences()
89
89
stdoutBuffer .toString ());
90
90
}
91
91
92
+ @ Test (expected = RuntimeException .class )
93
+ public void issue421_shouldThrowRuntimeExceptionWhenSemicolonIsMissing ()
94
+ throws RecognitionException , IOException {
95
+ final String script = "\" test\" |print" ;
96
+ try {
97
+ FluxCompiler .compile (createInputStream (script ), emptyMap ());
98
+ } catch (RuntimeException re ) {
99
+ assertEquals ("mismatched input '<EOF>' expecting ';' in Flux" , re .getMessage ());
100
+ throw re ;
101
+ }
102
+ }
103
+
92
104
private ByteArrayInputStream createInputStream (String script ) {
93
105
return new ByteArrayInputStream (script .getBytes (StandardCharsets .UTF_8 ));
94
106
}
You can’t perform that action at this time.
0 commit comments