test_class.declarator: batcher
test_class.modifier: private
test_class.original_string: private TestBatcher batcher;
test_class.type: TestBatcher
test_class.var_name: batcher
test_class.declarator: operationCount
test_class.modifier: private
test_class.original_string: private int operationCount;
test_class.type: int
test_class.var_name: operationCount
test_class.declarator: resetCount
test_class.modifier: private
test_class.original_string: private int resetCount;
test_class.type: int
test_class.var_name: resetCount
test_class.file: rococoa/rococoa-core/src/test/java/org/rococoa/internal/OperationBatcherTest.java
test_class.identifier: OperationBatcherTest
test_case.body: @Test public void batchSizeThree() {
          batcher = new TestBatcher(3);
          assertEquals(0, operationCount);
          assertEquals(1, resetCount);
          
          batcher.operate();
          assertEquals(0, operationCount);
          assertEquals(1, resetCount);
          batcher.operate();
          assertEquals(0, operationCount);
          assertEquals(1, resetCount);
          batcher.operate();
          assertEquals(1, operationCount);
          assertEquals(2, resetCount);
          
          batcher.operate();
          assertEquals(1, operationCount);
          assertEquals(2, resetCount);
      }
test_case.class_method_signature: OperationBatcherTest.batchSizeThree()
test_case.full_signature: @Test public void batchSizeThree()
test_case.identifier: batchSizeThree
test_case.invocations: assertEquals assertEquals operate assertEquals assertEquals operate assertEquals assertEquals operate assertEquals assertEquals operate assertEquals assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void batchSizeThree()
focal_class.declarator: batchSize
focal_class.modifier: private final
focal_class.original_string: private final int batchSize;
focal_class.type: int
focal_class.var_name: batchSize
focal_class.declarator: count
focal_class.modifier: private
focal_class.original_string: private int count;
focal_class.type: int
focal_class.var_name: count
focal_class.declarator: closed
focal_class.modifier: private
focal_class.original_string: private boolean closed;
focal_class.type: boolean
focal_class.var_name: closed
focal_class.file: rococoa/rococoa-core/src/main/java/org/rococoa/internal/OperationBatcher.java
focal_class.identifier: OperationBatcher
focal_class.class_method_signature: OperationBatcher.OperationBatcher(int batchSize)
focal_class.full_signature: public  OperationBatcher(int batchSize)
focal_class.identifier: OperationBatcher
focal_class.modifiers: public
focal_class.parameters: (int batchSize)
focal_class.signature:  OperationBatcher(int batchSize)
focal_class.class_method_signature: OperationBatcher.operate()
focal_class.full_signature: public void operate()
focal_class.identifier: operate
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void operate()
focal_class.class_method_signature: OperationBatcher.close()
focal_class.full_signature: public void close()
focal_class.identifier: close
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: OperationBatcher.operation()
focal_class.full_signature: protected abstract void operation()
focal_class.identifier: operation
focal_class.modifiers: protected abstract
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void operation()
focal_class.class_method_signature: OperationBatcher.reset()
focal_class.full_signature: protected abstract void reset()
focal_class.identifier: reset
focal_class.modifiers: protected abstract
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void reset()
focal_method.body: public void operate() {
          if (closed) {
              throw new IllegalStateException("Batcher closed");
          }
          if (++count < batchSize) {
              return;
          }
          operation();
          reset();
          count = 0;
      }
focal_method.class_method_signature: OperationBatcher.operate()
focal_method.full_signature: public void operate()
focal_method.identifier: operate
focal_method.invocations: operation reset
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void operate()