test_class.file: BackEnd/Core/sailfish-core/src/test/java/com/exactpro/sf/util/TestMatrixActionsGenerator.java
test_class.identifier: TestMatrixActionsGenerator
test_class.superclass: extends AbstractTest
test_case.body: @Test
  	public void testMatrixActionsGenerator() throws Exception
  	{
  		IDictionaryStructureLoader loader = new XmlDictionaryStructureLoader();
  
  		IDictionaryStructure dictionary;
  		
  		try (InputStream in = new FileInputStream("src/main/workspace/cfg/dictionaries/example.xml")) {
  			dictionary = loader.load(in);
      	}
  
  		String path = "build/test-results/generated";
  
  		MatrixActionsGenerator.generate(
  				path,
                  "com.exactpro.sf.actions",
                  "com.exactpro.sf.messages.impl",
  				dictionary, "DefaultMessageFactory.getFactory().getUncheckedFields()"
  		);
  
          File actionFile = new File(path + "/com/exactpro/sf/actions/EXAMPLE_SndRcvMatrixActions.java");
          if(!actionFile.exists()) {
              Assert.fail();
          }
      }
test_case.class_method_signature: TestMatrixActionsGenerator.testMatrixActionsGenerator()
test_case.full_signature: @Test public void testMatrixActionsGenerator()
test_case.identifier: testMatrixActionsGenerator
test_case.invocations: load generate exists fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMatrixActionsGenerator()
focal_class.declarator: actionPackage = "com.exactpro.sf.actions"
focal_class.modifier: private static final
focal_class.original_string: private static final String actionPackage = "com.exactpro.sf.actions";
focal_class.type: String
focal_class.var_name: actionPackage
focal_class.declarator: messagePackageName = "com.exactpro.sf.messages"
focal_class.modifier: private static final
focal_class.original_string: private static final String messagePackageName = "com.exactpro.sf.messages";
focal_class.type: String
focal_class.var_name: messagePackageName
focal_class.declarator: defaultUncheckedFields = "com.exactpro.sf.common.impl.messages.DefaultMessageFactory.getFactory().getUncheckedFields()"
focal_class.modifier: private static final
focal_class.original_string: private static final String defaultUncheckedFields = "com.exactpro.sf.common.impl.messages.DefaultMessageFactory.getFactory().getUncheckedFields()";
focal_class.type: String
focal_class.var_name: defaultUncheckedFields
focal_class.file: BackEnd/Core/sailfish-core/src/main/java/com/exactpro/sf/util/MatrixActionsGenerator.java
focal_class.identifier: MatrixActionsGenerator
focal_class.class_method_signature: MatrixActionsGenerator.generate(
  			String genDir,
  			String actionPackage,
  			String messagesPackageName,
  			IDictionaryStructure dictionary,
  			String uncheckedFields)
focal_class.full_signature: public static void generate(
  			String genDir,
  			String actionPackage,
  			String messagesPackageName,
  			IDictionaryStructure dictionary,
  			String uncheckedFields)
focal_class.identifier: generate
focal_class.modifiers: public static
focal_class.parameters: (
  			String genDir,
  			String actionPackage,
  			String messagesPackageName,
  			IDictionaryStructure dictionary,
  			String uncheckedFields)
focal_class.return: void
focal_class.signature: void generate(
  			String genDir,
  			String actionPackage,
  			String messagesPackageName,
  			IDictionaryStructure dictionary,
  			String uncheckedFields)
focal_class.class_method_signature: MatrixActionsGenerator.writeFile(String contents, String fileName)
focal_class.full_signature: private static void writeFile(String contents, String fileName)
focal_class.identifier: writeFile
focal_class.modifiers: private static
focal_class.parameters: (String contents, String fileName)
focal_class.return: void
focal_class.signature: void writeFile(String contents, String fileName)
focal_class.class_method_signature: MatrixActionsGenerator.loadDictionary(String dictionaryFile)
focal_class.full_signature: static IDictionaryStructure loadDictionary(String dictionaryFile)
focal_class.identifier: loadDictionary
focal_class.modifiers: static
focal_class.parameters: (String dictionaryFile)
focal_class.return: IDictionaryStructure
focal_class.signature: IDictionaryStructure loadDictionary(String dictionaryFile)
focal_class.class_method_signature: MatrixActionsGenerator.main(String[] args)
focal_class.full_signature: public static void main(String[] args)
focal_class.identifier: main
focal_class.modifiers: public static
focal_class.parameters: (String[] args)
focal_class.return: void
focal_class.signature: void main(String[] args)
focal_method.body: public static void generate(
  			String genDir,
  			String actionPackage,
  			String messagesPackageName,
  			IDictionaryStructure dictionary,
  			String uncheckedFields)
  	throws IOException {
  
          Collection<IMessageStructure> messages = dictionary.getMessages().values();
  
  		StringWriter strWriter = new StringWriter();
  		String typeNamespace = messagesPackageName + "." + dictionary.getNamespace().toLowerCase();
  		ActionClassTemplate actionTemplate = new ActionClassTemplate();
  
  		actionTemplate.render(
  				strWriter,
  				actionPackage,
  				dictionary.getNamespace(),
  				typeNamespace,
  				messages,
                  uncheckedFields
  		);
  
  		String fileName = genDir
  		+ ("." + actionPackage + "." + dictionary.getNamespace().toUpperCase() + "_SndRcvMatrixActions")
  		.replace('.', File.separatorChar);
  		fileName += ".java";
  		String contents = strWriter.toString();
  		writeFile(contents, fileName);
  	}
focal_method.class_method_signature: MatrixActionsGenerator.generate(
  			String genDir,
  			String actionPackage,
  			String messagesPackageName,
  			IDictionaryStructure dictionary,
  			String uncheckedFields)
focal_method.full_signature: public static void generate(
  			String genDir,
  			String actionPackage,
  			String messagesPackageName,
  			IDictionaryStructure dictionary,
  			String uncheckedFields)
focal_method.identifier: generate
focal_method.invocations: values getMessages toLowerCase getNamespace render getNamespace replace toUpperCase getNamespace toString writeFile
focal_method.modifiers: public static
focal_method.parameters: (
  			String genDir,
  			String actionPackage,
  			String messagesPackageName,
  			IDictionaryStructure dictionary,
  			String uncheckedFields)
focal_method.return: void
focal_method.signature: void generate(
  			String genDir,
  			String actionPackage,
  			String messagesPackageName,
  			IDictionaryStructure dictionary,
  			String uncheckedFields)