test_class.file: BackEnd/Core/sailfish-core/src/test/java/com/exactpro/sf/aml/reader/AMLReaderTest.java
test_class.identifier: AMLReaderTest
test_class.superclass: extends AbstractTest
test_case.body: @Test
      public void negativeTest() throws Exception {
          File matrixFile = new File(BASE_DIR, "src/test/resources/aml/reader/negative-test.csv");
  
          try(AdvancedMatrixReader matrixReader = new AdvancedMatrixReader(matrixFile)) {
              AMLReader.read(matrixReader);
              Assert.fail("No errors were detected");
          } catch(AMLException e) {
              Collection<Alert> errors = e.getAlertCollector().getAlerts();
  
              Assert.assertEquals(17, errors.size());
  
              Alert error = new Alert(2, null, null, "Block is not opened", AlertType.ERROR);
              Assert.assertTrue(error.toString(), errors.remove(error));
              error = new Alert(3, null, null, "No block to close", AlertType.ERROR);
              Assert.assertTrue(error.toString(), errors.remove(error));
              error = new Alert(6, null, null, "Unclosed block at line: 5", AlertType.ERROR);
              Assert.assertTrue(error.toString(), errors.remove(error));
              error = new Alert(7, null, null, "Invalid close statement: Block end (expected: Test case end)", AlertType.ERROR);
              Assert.assertTrue(error.toString(), errors.remove(error));
              error = new Alert(9, null, null, "Unclosed block at line: 5", AlertType.ERROR);
              Assert.assertTrue(error.toString(), errors.remove(error));
              error = new Alert(10, null, null, "Missing 'IF', 'ELIF' or 'ELSE' statement", AlertType.ERROR);
              Assert.assertTrue(error.toString(), errors.remove(error));
              error = new Alert(11, null, null, "Missing 'IF' statement", AlertType.ERROR);
              Assert.assertTrue(error.toString(), errors.remove(error));
              error = new Alert(13, null, null, "Missing 'IF' or 'ELIF' statement", AlertType.ERROR);
              Assert.assertTrue(error.toString(), errors.remove(error));
              error = new Alert(14, null, null, "Missing 'IF' or 'ELIF' statement", AlertType.ERROR);
              Assert.assertTrue(error.toString(), errors.remove(error));
              error = new Alert(16, null, null, "Unclosed block at line: 15", AlertType.ERROR);
              Assert.assertTrue(error.toString(), errors.remove(error));
              error = new Alert(17, null, null, "Missing 'REPEAT' statement", AlertType.ERROR);
              Assert.assertTrue(error.toString(), errors.remove(error));
              error = new Alert(20, null, null, "Unclosed block at line: 18", AlertType.ERROR);
              Assert.assertTrue(error.toString(), errors.remove(error));
              error = new Alert(21, null, null, "Unclosed block at line: 18", AlertType.ERROR);
              Assert.assertTrue(error.toString(), errors.remove(error));
              error = new Alert(22, null, null, "Unclosed block at line: 18", AlertType.ERROR);
              Assert.assertTrue(error.toString(), errors.remove(error));
              error = new Alert(22, null, null, "Unclosed block at line: 15", AlertType.ERROR);
              Assert.assertTrue(error.toString(), errors.remove(error));
              error = new Alert(22, null, null, "Unclosed block at line: 12", AlertType.ERROR);
              Assert.assertTrue(error.toString(), errors.remove(error));
              error = new Alert(22, null, null, "Unclosed block at line: 5", AlertType.ERROR);
              Assert.assertTrue(error.toString(), errors.remove(error));
  
              Assert.assertEquals(0, errors.size());
          }
      }
test_case.class_method_signature: AMLReaderTest.negativeTest()
test_case.full_signature: @Test public void negativeTest()
test_case.identifier: negativeTest
test_case.invocations: read fail getAlerts getAlertCollector assertEquals size assertTrue toString remove assertTrue toString remove assertTrue toString remove assertTrue toString remove assertTrue toString remove assertTrue toString remove assertTrue toString remove assertTrue toString remove assertTrue toString remove assertTrue toString remove assertTrue toString remove assertTrue toString remove assertTrue toString remove assertTrue toString remove assertTrue toString remove assertTrue toString remove assertTrue toString remove assertEquals size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void negativeTest()
focal_class.declarator: logger = LoggerFactory.getLogger(AMLReader.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(AMLReader.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: BackEnd/Core/sailfish-core/src/main/java/com/exactpro/sf/aml/reader/AMLReader.java
focal_class.identifier: AMLReader
focal_class.class_method_signature: AMLReader.read(AdvancedMatrixReader matrixReader)
focal_class.full_signature: public static AMLMatrix read(AdvancedMatrixReader matrixReader)
focal_class.identifier: read
focal_class.modifiers: public static
focal_class.parameters: (AdvancedMatrixReader matrixReader)
focal_class.return: AMLMatrix
focal_class.signature: AMLMatrix read(AdvancedMatrixReader matrixReader)
focal_class.class_method_signature: AMLReader.read(AdvancedMatrixReader matrixReader, boolean skipOptional)
focal_class.full_signature: public static AMLMatrix read(AdvancedMatrixReader matrixReader, boolean skipOptional)
focal_class.identifier: read
focal_class.modifiers: public static
focal_class.parameters: (AdvancedMatrixReader matrixReader, boolean skipOptional)
focal_class.return: AMLMatrix
focal_class.signature: AMLMatrix read(AdvancedMatrixReader matrixReader, boolean skipOptional)
focal_class.class_method_signature: AMLReader.prepareHeader(List<SimpleCell> header)
focal_class.full_signature: private static List<SimpleCell> prepareHeader(List<SimpleCell> header)
focal_class.identifier: prepareHeader
focal_class.modifiers: private static
focal_class.parameters: (List<SimpleCell> header)
focal_class.return: List<SimpleCell>
focal_class.signature: List<SimpleCell> prepareHeader(List<SimpleCell> header)
focal_method.body: public static AMLMatrix read(AdvancedMatrixReader matrixReader) throws IOException, AMLException {
          return read(matrixReader, false);
      }
focal_method.class_method_signature: AMLReader.read(AdvancedMatrixReader matrixReader)
focal_method.full_signature: public static AMLMatrix read(AdvancedMatrixReader matrixReader)
focal_method.identifier: read
focal_method.invocations: read
focal_method.modifiers: public static
focal_method.parameters: (AdvancedMatrixReader matrixReader)
focal_method.return: AMLMatrix
focal_method.signature: AMLMatrix read(AdvancedMatrixReader matrixReader)