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); } }
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); } }