test_class.declarator: settings = new AMLSettings()
test_class.modifier: private static final
test_class.original_string: private static final AMLSettings settings = new AMLSettings();
test_class.type: AMLSettings
test_class.var_name: settings
test_class.declarator: actionRequirements = Mockito.mock(ActionRequirements.class)
test_class.modifier: private static final
test_class.original_string: private static final ActionRequirements actionRequirements = Mockito.mock(ActionRequirements.class);
test_class.type: ActionRequirements
test_class.var_name: actionRequirements
test_class.declarator: actionInfo = Mockito.mock(ActionInfo.class)
test_class.modifier: private static final
test_class.original_string: private static final ActionInfo actionInfo = Mockito.mock(ActionInfo.class);
test_class.type: ActionInfo
test_class.var_name: actionInfo
test_class.declarator: actionInfoVoid = Mockito.mock(ActionInfo.class)
test_class.modifier: private static final
test_class.original_string: private static final ActionInfo actionInfoVoid = Mockito.mock(ActionInfo.class);
test_class.type: ActionInfo
test_class.var_name: actionInfoVoid
test_class.declarator: actionManager = Mockito.mock(ActionManager.class)
test_class.modifier: private static final
test_class.original_string: private static final ActionManager actionManager = Mockito.mock(ActionManager.class);
test_class.type: ActionManager
test_class.var_name: actionManager
test_class.file: BackEnd/Core/sailfish-core/src/test/java/com/exactpro/sf/aml/AMLConverterTest.java
test_class.identifier: AMLConverterTest
test_class.superclass: extends AbstractTest
test_case.body: @Test
      public void positiveTest() throws Exception {
          File matrixFile = new File(BASE_DIR, "src/test/resources/aml/converter-positive-test.csv");
  
          try(AdvancedMatrixReader matrixReader = new AdvancedMatrixReader(matrixFile)) {
              AMLMatrix matrix = AMLReader.read(matrixReader);
  
              ListMultimap<AMLBlockType, AMLTestCase> blocks = AMLConverter.convert(matrix, settings, actionManager, new AlertCollector());
  
              Assert.assertEquals(0, blocks.get(AMLBlockType.FirstBlock).size());
              Assert.assertEquals(1, blocks.get(AMLBlockType.GlobalBlock).size());
  
              AMLTestCase globalBlock = blocks.get(AMLBlockType.GlobalBlock).get(0);
  
              Assert.assertEquals(1, globalBlock.getActions().size());
  
              AMLAction action = globalBlock.getActions().get(0);
  
              Assert.assertEquals(JavaStatement.SET_STATIC, JavaStatement.value(action.getActionURI()));
              Assert.assertEquals("876", action.getStaticValue().getValue());
              Assert.assertEquals("10", action.getStaticValue().getOrigValue());
  
              Assert.assertEquals(3, blocks.get(AMLBlockType.TestCase).size());
  
              AMLTestCase testCase = blocks.get(AMLBlockType.TestCase).get(0);
  
              Assert.assertEquals(13, testCase.getActions().size());
              Assert.assertNull(testCase.findActionByRef("rsm1"));
              Assert.assertTrue(testCase.isAddToReport());
              Assert.assertEquals(1, testCase.getMatrixOrder());
  
              AMLAction initMapAction = testCase.findActionByRef("hm");
  
              Assert.assertEquals(2, initMapAction.getParameters().size());
              Assert.assertTrue(initMapAction.getParameters().containsKey("Value1"));
              Assert.assertTrue(initMapAction.getParameters().containsKey("Value3"));
  
              AMLAction receiveAction = testCase.findActionByRef("rsm2");
  
              Assert.assertEquals("og:on2", receiveAction.getOutcome());
              Assert.assertEquals("og", receiveAction.getOutcomeGroup());
              Assert.assertEquals("on2", receiveAction.getOutcomeName());
              Assert.assertEquals(2, receiveAction.getVerificationsOrder().size());
              Assert.assertEquals("Value1:PASSED", receiveAction.getVerificationsOrder().get(0));
              Assert.assertEquals("Value3:FAILED", receiveAction.getVerificationsOrder().get(1));
              Assert.assertEquals(ImmutableSet.of("FInteger", "FString"), receiveAction.getKeyFields());
  
              Assert.assertEquals(1, blocks.get(AMLBlockType.LastBlock).size());
  
              AMLTestCase lastBlock = blocks.get(AMLBlockType.LastBlock).get(0);
  
              Assert.assertEquals(1, lastBlock.getActions().size());
              Assert.assertFalse(lastBlock.isAddToReport());
  
              AMLAction sleepAction = lastBlock.findActionByRef("slp");
  
              Assert.assertFalse(sleepAction.isAddToReport());
  
              testCase = blocks.get(AMLBlockType.TestCase).get(1);
  
              Assert.assertEquals(3, testCase.getMatrixOrder());
          }
      }
test_case.class_method_signature: AMLConverterTest.positiveTest()
test_case.full_signature: @Test public void positiveTest()
test_case.identifier: positiveTest
test_case.invocations: read convert assertEquals size get assertEquals size get get get assertEquals size getActions get getActions assertEquals value getActionURI assertEquals getValue getStaticValue assertEquals getOrigValue getStaticValue assertEquals size get get get assertEquals size getActions assertNull findActionByRef assertTrue isAddToReport assertEquals getMatrixOrder findActionByRef assertEquals size getParameters assertTrue containsKey getParameters assertTrue containsKey getParameters findActionByRef assertEquals getOutcome assertEquals getOutcomeGroup assertEquals getOutcomeName assertEquals size getVerificationsOrder assertEquals get getVerificationsOrder assertEquals get getVerificationsOrder assertEquals of getKeyFields assertEquals size get get get assertEquals size getActions assertFalse isAddToReport findActionByRef assertFalse isAddToReport get get assertEquals getMatrixOrder
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void positiveTest()
focal_class.file: BackEnd/Core/sailfish-core/src/main/java/com/exactpro/sf/aml/AMLConverter.java
focal_class.identifier: AMLConverter
focal_class.class_method_signature: AMLConverter.convert(AMLMatrix matrix, AMLSettings settings, IActionManager actionManager, AlertCollector alertCollector)
focal_class.full_signature: public static ListMultimap<AMLBlockType, AMLTestCase> convert(AMLMatrix matrix, AMLSettings settings, IActionManager actionManager, AlertCollector alertCollector)
focal_class.identifier: convert
focal_class.modifiers: public static
focal_class.parameters: (AMLMatrix matrix, AMLSettings settings, IActionManager actionManager, AlertCollector alertCollector)
focal_class.return: ListMultimap<AMLBlockType, AMLTestCase>
focal_class.signature: ListMultimap<AMLBlockType, AMLTestCase> convert(AMLMatrix matrix, AMLSettings settings, IActionManager actionManager, AlertCollector alertCollector)
focal_method.body: public static ListMultimap<AMLBlockType, AMLTestCase> convert(AMLMatrix matrix, AMLSettings settings, IActionManager actionManager, AlertCollector alertCollector) throws AMLException {
          AMLMatrixWrapper wrapper = new AMLMatrixWrapper(matrix);
          AMLConverterVisitor visitor = new AMLConverterVisitor(settings, actionManager, wrapper, alertCollector);
  
          for(AMLBlock block : matrix.getBlocks()) {
              block.accept(visitor);
          }
  
          return visitor.getBlocks();
      }
focal_method.class_method_signature: AMLConverter.convert(AMLMatrix matrix, AMLSettings settings, IActionManager actionManager, AlertCollector alertCollector)
focal_method.full_signature: public static ListMultimap<AMLBlockType, AMLTestCase> convert(AMLMatrix matrix, AMLSettings settings, IActionManager actionManager, AlertCollector alertCollector)
focal_method.identifier: convert
focal_method.invocations: getBlocks accept getBlocks
focal_method.modifiers: public static
focal_method.parameters: (AMLMatrix matrix, AMLSettings settings, IActionManager actionManager, AlertCollector alertCollector)
focal_method.return: ListMultimap<AMLBlockType, AMLTestCase>
focal_method.signature: ListMultimap<AMLBlockType, AMLTestCase> convert(AMLMatrix matrix, AMLSettings settings, IActionManager actionManager, AlertCollector alertCollector)