test_class.declarator: expectedEx = ExpectedException.none()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public ExpectedException expectedEx = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: expectedEx
test_class.file: dbfit-java/oracle/src/test/java/dbfit/environment/OracleSerialClobNormaliserTest.java
test_class.identifier: OracleSerialClobNormaliserTest
test_case.body: @Test
      public void shouldReturnContentsOfClobIFAllOkay() throws SQLException {
          OracleSerialClob clob = mock(OracleSerialClob.class);
  
          when(clob.length()).thenReturn(Long.valueOf("CLOB contents".length()));
          when(clob.getSubString(1l, "CLOB contents".length())).thenReturn("CLOB contents");
  
          assertEquals("CLOB contents", new OracleSerialClobNormaliser().transform(clob));
      }
test_case.class_method_signature: OracleSerialClobNormaliserTest.shouldReturnContentsOfClobIFAllOkay()
test_case.full_signature: @Test public void shouldReturnContentsOfClobIFAllOkay()
test_case.identifier: shouldReturnContentsOfClobIFAllOkay
test_case.invocations: mock thenReturn when length valueOf length thenReturn when getSubString length assertEquals transform
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldReturnContentsOfClobIFAllOkay()
focal_class.declarator: MAX_CLOB_LENGTH = 10000
focal_class.modifier: private static final
focal_class.original_string: private static final int MAX_CLOB_LENGTH = 10000;
focal_class.type: int
focal_class.var_name: MAX_CLOB_LENGTH
focal_class.file: dbfit-java/oracle/src/main/java/dbfit/environment/OracleSerialClobNormaliser.java
focal_class.identifier: OracleSerialClobNormaliser
focal_class.interfaces: implements TypeTransformer
focal_class.class_method_signature: OracleSerialClobNormaliser.transform(Object o)
focal_class.full_signature: @Override public Object transform(Object o)
focal_class.identifier: transform
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: Object
focal_class.signature: Object transform(Object o)
focal_method.body: @Override
      public Object transform(Object o) throws SQLException {
          if (o == null)
              return null;
          if (!(o instanceof oracle.jdbc.rowset.OracleSerialClob)) {
              throw new UnsupportedOperationException(
                      "OracleSerialClobNormaliser cannot work with " + o.getClass());
          }
          oracle.jdbc.rowset.OracleSerialClob clob = (oracle.jdbc.rowset.OracleSerialClob) o;
          if (clob.length() > MAX_CLOB_LENGTH)
              throw new UnsupportedOperationException("Clobs larger than "
                      + MAX_CLOB_LENGTH + " bytes are not supported by DBFIT");
          return clob.getSubString(1, (int)clob.length());
      }
focal_method.class_method_signature: OracleSerialClobNormaliser.transform(Object o)
focal_method.full_signature: @Override public Object transform(Object o)
focal_method.identifier: transform
focal_method.invocations: getClass length getSubString length
focal_method.modifiers: @Override public
focal_method.parameters: (Object o)
focal_method.return: Object
focal_method.signature: Object transform(Object o)