File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
test/java/uk/co/real_logic/sbe/generation/java Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 2626import uk .co .real_logic .sbe .xml .MessageSchema ;
2727import uk .co .real_logic .sbe .xml .ParserOptions ;
2828
29+ import java .io .IOException ;
2930import java .lang .reflect .Method ;
3031import java .nio .ByteOrder ;
3132
@@ -218,4 +219,15 @@ public void shouldGenerateBasicMessage() throws Exception
218219 final Integer count = (Integer )groupFlyweight .getClass ().getDeclaredMethod ("count" ).invoke (groupFlyweight );
219220 assertThat (count , is (Integer .valueOf (0 )));
220221 }
222+
223+ @ Test (expected = IllegalArgumentException .class )
224+ public void shouldValidateMissingBufferClass () throws IOException {
225+ new JavaGenerator (ir , "dasdsads" , outputManager );
226+ }
227+
228+ @ Test (expected = IllegalArgumentException .class )
229+ public void shouldValidateNotImplementedBufferClass () throws IOException {
230+ new JavaGenerator (ir , "java.nio.ByteBuffer" , outputManager );
231+ }
232+
221233}
You can’t perform that action at this time.
0 commit comments