コード例 #1
0
 protected void verify() throws TestException {
   RecordMetaData record = (RecordMetaData) records.firstElement();
   if (!CobolTestModel.compareCompositeObjects(
       record, CobolTestModel.getComplexPicStatementRecord())) {
     TestErrorException exception = new TestErrorException("The records do not match.");
     setTestException(exception);
   }
 }
コード例 #2
0
 protected void test() {
   ByteArrayInputStream inputStream =
       new ByteArrayInputStream(CobolTestModel.getComplexPicStatementCopyBookString().getBytes());
   CopyBookParser parser = new CopyBookParser();
   try {
     records = parser.parse(inputStream);
   } catch (Exception exception) {
     TestErrorException testException = new TestErrorException(exception.getMessage());
     setTestException(testException);
   }
 }