@Test public final void testDrawInstancedBadFirst() { final Interfaces i = this.getInterfaces("main"); final JCGLDrawType gd = i.getDraw(); this.expected.expect(RangeCheckException.class); gd.drawInstanced(JCGLPrimitives.PRIMITIVE_TRIANGLES, -1, 1, 1); }
@Test public final void testDrawInstancedBadFirst() { final Interfaces i = this.getInterfaces("main"); final JCGLDrawType gd = i.getDraw(); this.expected.expect(RangeCheckException.class); gd.drawInstanced(JCGLPrimitives.PRIMITIVE_TRIANGLES, -1, 1, 1); }
@Test public final void testDrawInstancedBadInstances() { final Interfaces i = this.getInterfaces("main"); final JCGLDrawType gd = i.getDraw(); this.expected.expect(RangeCheckException.class); gd.drawInstanced(JCGLPrimitives.PRIMITIVE_TRIANGLES, 0, 0, -1); }
@Test public final void testDrawInstancedBadCount() { final Interfaces i = this.getInterfaces("main"); final JCGLDrawType gd = i.getDraw(); this.expected.expect(RangeCheckException.class); gd.drawInstanced(JCGLPrimitives.PRIMITIVE_TRIANGLES, 0, -1, 1); }
@Test public final void testDrawInstancedBadCount() { final Interfaces i = this.getInterfaces("main"); final JCGLDrawType gd = i.getDraw(); this.expected.expect(RangeCheckException.class); gd.drawInstanced(JCGLPrimitives.PRIMITIVE_TRIANGLES, 0, -1, 1); }
@Test public final void testDrawInstancedBadInstances() { final Interfaces i = this.getInterfaces("main"); final JCGLDrawType gd = i.getDraw(); this.expected.expect(RangeCheckException.class); gd.drawInstanced(JCGLPrimitives.PRIMITIVE_TRIANGLES, 0, 0, -1); }