test_class.declarator: thrown = ExpectedException.none()
test_class.modifier: @Rule public
test_class.original_string: @Rule public ExpectedException thrown = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: thrown
test_class.file: jme3-core/src/test/java/com/jme3/scene/mesh/VirtualIndexBufferTest.java
test_class.identifier: VirtualIndexBufferTest
test_case.body: @Test
      public void testGet() {
          IntBuffer ib = IntBuffer.allocate(27);
  
          final VirtualIndexBuffer bufferPoints = new VirtualIndexBuffer(27, Mode.Points);
          for (int i=0; i<27; i++) {ib.put(bufferPoints.get());}
          assertArrayEquals(new int[]{
                  0, 1, 2,
                  3, 4, 5,
                  6, 7, 8,
                  9, 10, 11,
                  12, 13, 14,
                  15, 16, 17,
                  18, 19, 20,
                  21, 22, 23,
                  24, 25, 26}, ib.array());
          ib.clear();
          assertEquals(0, bufferPoints.remaining());
  
          final VirtualIndexBuffer bufferLines = new VirtualIndexBuffer(27, Mode.Lines);
          for (int i=0; i<27; i++) {ib.put(bufferLines.get());}
          assertArrayEquals(new int[]{
                  0, 1, 2,
                  3, 4, 5,
                  6, 7, 8,
                  9, 10, 11,
                  12, 13, 14,
                  15, 16, 17,
                  18, 19, 20,
                  21, 22, 23,
                  24, 25, 26}, ib.array());
          assertEquals(0, bufferLines.remaining());
          ib.clear();
  
          final VirtualIndexBuffer bufferTriangles = new VirtualIndexBuffer(27, Mode.Triangles);
          for (int i=0; i<27; i++) {ib.put(bufferTriangles.get());}
          assertArrayEquals(new int[]{
                  0, 1, 2,
                  3, 4, 5,
                  6, 7, 8,
                  9, 10, 11,
                  12, 13, 14,
                  15, 16, 17,
                  18, 19, 20,
                  21, 22, 23,
                  24, 25, 26}, ib.array());
          assertEquals(0, bufferTriangles.remaining());
          ib.clear();
  
          final VirtualIndexBuffer bufferLineStrip = new VirtualIndexBuffer(27, Mode.LineStrip);
          for (int i=0; i<27; i++) {ib.put(bufferLineStrip.get());}
          assertArrayEquals(new int[]{
                  0, 1, 1,
                  2, 2, 3,
                  3, 4, 4,
                  5, 5, 6,
                  6, 7, 7,
                  8, 8, 9,
                  9, 10, 10,
                  11, 11, 12,
                  12, 13, 13}, ib.array());
          assertEquals(25, bufferLineStrip.remaining());
          ib.clear();
  
          final VirtualIndexBuffer bufferLineLoop = new VirtualIndexBuffer(27, Mode.LineLoop);
          for (int i=0; i<27; i++) {ib.put(bufferLineLoop.get());}
          assertArrayEquals(new int[]{
                  0, 1, 1,
                  2, 2, 3,
                  3, 4, 4,
                  5, 5, 6,
                  6, 7, 7,
                  8, 8, 9,
                  9, 10, 10,
                  11, 11, 12,
                  12, 13, 0}, ib.array());
          assertEquals(26, bufferLineLoop.remaining());
          ib.clear();
  
          final VirtualIndexBuffer bufferTriangleStrip = new VirtualIndexBuffer(27, Mode.TriangleStrip);
          for (int i=0; i<27; i++) {ib.put(bufferTriangleStrip.get());}
          assertArrayEquals(new int[]{
                  0, 1, 2,
                  2, 1, 3,
                  2, 3, 4,
                  4, 3, 5,
                  4, 5, 6,
                  6, 5, 7,
                  6, 7, 8,
                  8, 7, 9,
                  8, 9, 10}, ib.array());
          assertEquals(48, bufferTriangleStrip.remaining());
          ib.clear();
  
          final VirtualIndexBuffer bufferTriangleFan = new VirtualIndexBuffer(27, Mode.TriangleFan);
          for (int i=0; i<27; i++) {ib.put(bufferTriangleFan.get());}
          assertArrayEquals(new int[]{
                  0, 1, 2,
                  0, 2, 3,
                  0, 3, 4,
                  0, 4, 5,
                  0, 5, 6,
                  0, 6, 7,
                  0, 7, 8,
                  0, 8, 9,
                  0, 9, 10}, ib.array());
          assertEquals(48, bufferTriangleFan.remaining());
          ib.clear();
      }
test_case.class_method_signature: VirtualIndexBufferTest.testGet()
test_case.full_signature: @Test public void testGet()
test_case.identifier: testGet
test_case.invocations: allocate put get assertArrayEquals array clear assertEquals remaining put get assertArrayEquals array assertEquals remaining clear put get assertArrayEquals array assertEquals remaining clear put get assertArrayEquals array assertEquals remaining clear put get assertArrayEquals array assertEquals remaining clear put get assertArrayEquals array assertEquals remaining clear put get assertArrayEquals array assertEquals remaining clear
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGet()
focal_class.declarator: numVerts = 0
focal_class.modifier: protected
focal_class.original_string: protected int numVerts = 0;
focal_class.type: int
focal_class.var_name: numVerts
focal_class.declarator: numIndices = 0
focal_class.modifier: protected
focal_class.original_string: protected int numIndices = 0;
focal_class.type: int
focal_class.var_name: numIndices
focal_class.declarator: meshMode
focal_class.modifier: protected
focal_class.original_string: protected Mode meshMode;
focal_class.type: Mode
focal_class.var_name: meshMode
focal_class.declarator: position = 0
focal_class.modifier: protected
focal_class.original_string: protected int position = 0;
focal_class.type: int
focal_class.var_name: position
focal_class.file: jme3-core/src/main/java/com/jme3/scene/mesh/VirtualIndexBuffer.java
focal_class.identifier: VirtualIndexBuffer
focal_class.class_method_signature: VirtualIndexBuffer.VirtualIndexBuffer(int numVerts, Mode meshMode)
focal_class.full_signature: public  VirtualIndexBuffer(int numVerts, Mode meshMode)
focal_class.identifier: VirtualIndexBuffer
focal_class.modifiers: public
focal_class.parameters: (int numVerts, Mode meshMode)
focal_class.signature:  VirtualIndexBuffer(int numVerts, Mode meshMode)
focal_class.class_method_signature: VirtualIndexBuffer.get()
focal_class.full_signature: @Override public int get()
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int get()
focal_class.class_method_signature: VirtualIndexBuffer.rewind()
focal_class.full_signature: @Override public void rewind()
focal_class.identifier: rewind
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rewind()
focal_class.class_method_signature: VirtualIndexBuffer.remaining()
focal_class.full_signature: @Override public int remaining()
focal_class.identifier: remaining
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int remaining()
focal_class.class_method_signature: VirtualIndexBuffer.get(int i)
focal_class.full_signature: @Override public int get(int i)
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: (int i)
focal_class.return: int
focal_class.signature: int get(int i)
focal_class.class_method_signature: VirtualIndexBuffer.put(int i, int value)
focal_class.full_signature: @Override public IndexBuffer put(int i, int value)
focal_class.identifier: put
focal_class.modifiers: @Override public
focal_class.parameters: (int i, int value)
focal_class.return: IndexBuffer
focal_class.signature: IndexBuffer put(int i, int value)
focal_class.class_method_signature: VirtualIndexBuffer.size()
focal_class.full_signature: @Override public int size()
focal_class.identifier: size
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int size()
focal_class.class_method_signature: VirtualIndexBuffer.getBuffer()
focal_class.full_signature: @Override public Buffer getBuffer()
focal_class.identifier: getBuffer
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Buffer
focal_class.signature: Buffer getBuffer()
focal_class.class_method_signature: VirtualIndexBuffer.put(int value)
focal_class.full_signature: @Override public IndexBuffer put(int value)
focal_class.identifier: put
focal_class.modifiers: @Override public
focal_class.parameters: (int value)
focal_class.return: IndexBuffer
focal_class.signature: IndexBuffer put(int value)
focal_class.class_method_signature: VirtualIndexBuffer.getFormat()
focal_class.full_signature: @Override public Format getFormat()
focal_class.identifier: getFormat
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Format
focal_class.signature: Format getFormat()
focal_class.superclass: extends IndexBuffer
focal_method.body: @Override
      public int get() {
          int i = get(position);
          position++;
          return i;
      }
focal_method.class_method_signature: VirtualIndexBuffer.get()
focal_method.full_signature: @Override public int get()
focal_method.identifier: get
focal_method.invocations: get
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int get()