test_class.file: dataprep-backend-service/src/test/java/org/talend/dataprep/dataset/store/content/StrictlyBoundedInputStreamTest.java
test_class.identifier: StrictlyBoundedInputStreamTest
test_case.body: @Test
      public void should_be_read_when_maximum_size_is_less_or_equal_to_zero() throws Exception {
          // Given
          byte[] bytes = { 0, 1, 2 };
          InputStream inputStream = new StrictlyBoundedInputStream(new ByteArrayInputStream(bytes), -1);
          byte[] result = new byte[3];
  
          // When
          inputStream.read(result, 0, 3);
  
          // Then
          assertArrayEquals(bytes, result);
      }
test_case.class_method_signature: StrictlyBoundedInputStreamTest.should_be_read_when_maximum_size_is_less_or_equal_to_zero()
test_case.full_signature: @Test public void should_be_read_when_maximum_size_is_less_or_equal_to_zero()
test_case.identifier: should_be_read_when_maximum_size_is_less_or_equal_to_zero
test_case.invocations: read assertArrayEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_be_read_when_maximum_size_is_less_or_equal_to_zero()
focal_class.declarator: in
focal_class.modifier: private final
focal_class.original_string: private final InputStream in;
focal_class.type: InputStream
focal_class.var_name: in
focal_class.declarator: maxSize
focal_class.modifier: private final
focal_class.original_string: private final long maxSize;
focal_class.type: long
focal_class.var_name: maxSize
focal_class.declarator: total
focal_class.modifier: private
focal_class.original_string: private long total;
focal_class.type: long
focal_class.var_name: total
focal_class.file: dataprep-backend-service/src/main/java/org/talend/dataprep/dataset/store/content/StrictlyBoundedInputStream.java
focal_class.identifier: StrictlyBoundedInputStream
focal_class.class_method_signature: StrictlyBoundedInputStream.StrictlyBoundedInputStream(InputStream in, long maxSize)
focal_class.full_signature: public  StrictlyBoundedInputStream(InputStream in, long maxSize)
focal_class.identifier: StrictlyBoundedInputStream
focal_class.modifiers: public
focal_class.parameters: (InputStream in, long maxSize)
focal_class.signature:  StrictlyBoundedInputStream(InputStream in, long maxSize)
focal_class.class_method_signature: StrictlyBoundedInputStream.getMaxSize()
focal_class.full_signature: public long getMaxSize()
focal_class.identifier: getMaxSize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getMaxSize()
focal_class.class_method_signature: StrictlyBoundedInputStream.getTotal()
focal_class.full_signature: public long getTotal()
focal_class.identifier: getTotal
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getTotal()
focal_class.class_method_signature: StrictlyBoundedInputStream.read()
focal_class.full_signature: @Override public int read()
focal_class.identifier: read
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int read()
focal_class.class_method_signature: StrictlyBoundedInputStream.incrementCounter(int size)
focal_class.full_signature: private void incrementCounter(int size)
focal_class.identifier: incrementCounter
focal_class.modifiers: private
focal_class.parameters: (int size)
focal_class.return: void
focal_class.signature: void incrementCounter(int size)
focal_class.superclass: extends InputStream
focal_method.body: @Override
      public int read() throws IOException {
          int i = in.read();
          if (i >= 0) {
              incrementCounter(1);
          }
          return i;
      }
focal_method.class_method_signature: StrictlyBoundedInputStream.read()
focal_method.full_signature: @Override public int read()
focal_method.identifier: read
focal_method.invocations: read incrementCounter
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int read()