@Override public void onStart() { this.array_object_builder = this.g.getArrayObjects().arrayObjectNewBuilder(); }
@Test public final void testArrayGetBadIndex() { final Interfaces i = this.getInterfaces("main"); final JCGLArrayObjectsType go = i.getArrayObjects(); final JCGLArrayObjectBuilderType b = go.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.getAttributeAt(-1); Assert.fail(); }
@Test public final void testArrayGetBadIndex() { final Interfaces i = this.getInterfaces("main"); final JCGLArrayObjectsType go = i.getArrayObjects(); final JCGLArrayObjectBuilderType b = go.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.getAttributeAt(-1); Assert.fail(); }
@Test public final void testIntegralArrayBadElements1() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.setAttributeIntegral( 0, a, 5, JCGLScalarIntegralType.TYPE_INT, 16, 0L); Assert.fail(); }
@Test public final void testIntegralArrayBadStride() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.setAttributeIntegral( 0, a, 4, JCGLScalarIntegralType.TYPE_INT, -1, 0L); Assert.fail(); }
@Test public final void testFloatingArrayBadIndex() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.setAttributeFloatingPoint( -1, a, 4, JCGLScalarType.TYPE_FLOAT, 16, 0L, false); Assert.fail(); }
@Test public final void testFloatingArrayBadStride() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.setAttributeFloatingPoint( 0, a, 4, JCGLScalarType.TYPE_FLOAT, -1, 0L, false); Assert.fail(); }
@Test public final void testIntegralArrayBadStride() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.setAttributeIntegral( 0, a, 4, JCGLScalarIntegralType.TYPE_INT, -1, 0L); Assert.fail(); }
@Test public final void testFloatingArrayBadElements0() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.setAttributeFloatingPoint( 0, a, -1, JCGLScalarType.TYPE_FLOAT, 16, 0L, false); Assert.fail(); }
@Test public final void testIntegralArrayBadElements0() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.setAttributeIntegral( 0, a, -1, JCGLScalarIntegralType.TYPE_INT, 16, 0L); Assert.fail(); }
@Test public final void testIntegralArrayBadElements1() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.setAttributeIntegral( 0, a, 5, JCGLScalarIntegralType.TYPE_INT, 16, 0L); Assert.fail(); }
@Test public final void testIntegralArrayBadOffset() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.setAttributeIntegral( 0, a, 4, JCGLScalarIntegralType.TYPE_INT, 16, 100L); Assert.fail(); }
@Test public final void testIntegralArrayBadOffset() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.setAttributeIntegral( 0, a, 4, JCGLScalarIntegralType.TYPE_INT, 16, 100L); Assert.fail(); }
@Test public final void testFloatingArrayBadElements0() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.setAttributeFloatingPoint( 0, a, -1, JCGLScalarType.TYPE_FLOAT, 16, 0L, false); Assert.fail(); }
@Test public final void testFloatingArrayBadOffset() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.setAttributeFloatingPoint( 0, a, 4, JCGLScalarType.TYPE_FLOAT, 16, 100L, false); Assert.fail(); }
@Test public final void testIntegralArrayBadIndex() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.setAttributeIntegral( -1, a, 4, JCGLScalarIntegralType.TYPE_INT, 16, 0L); Assert.fail(); }
@Test public final void testFloatingArrayBadElements1() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.setAttributeFloatingPoint( 0, a, 5, JCGLScalarType.TYPE_FLOAT, 16, 0L, false); Assert.fail(); }
@Test public final void testFloatingArrayBadStride() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.setAttributeFloatingPoint( 0, a, 4, JCGLScalarType.TYPE_FLOAT, -1, 0L, false); Assert.fail(); }
@Test public final void testFloatingArrayBadOffset() { final Interfaces i_main = this.getInterfaces("main"); final JCGLArrayBuffersType ga_main = i_main.getArrayBuffers(); final JCGLArrayObjectsType go_main = i_main.getArrayObjects(); final JCGLArrayBufferType a = ga_main.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go_main.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); this.expected.expect(RangeCheckException.class); b.setAttributeFloatingPoint( 0, a, 4, JCGLScalarType.TYPE_FLOAT, 16, 100L, false); Assert.fail(); }
@Test public final void testFloatingArrayDeleted() { final Interfaces i = this.getInterfaces("main"); final JCGLArrayBuffersType ga = i.getArrayBuffers(); final JCGLArrayObjectsType go = i.getArrayObjects(); final JCGLArrayBufferType a = ga.arrayBufferAllocate(100L, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLArrayObjectBuilderType b = go.arrayObjectNewBuilder(); Assert.assertTrue(b.getMaximumVertexAttributes() >= 16); ga.arrayBufferDelete(a); this.expected.expect(JCGLExceptionDeleted.class); b.setAttributeFloatingPoint( 0, a, 4, JCGLScalarType.TYPE_FLOAT, 16, 0L, false); Assert.fail(); }