test_class.declarator: inputsMappingFileVariableResolverConfigured
test_class.modifier: private
test_class.original_string: private InputsMappingFileVariableResolverConfigured inputsMappingFileVariableResolverConfigured;
test_class.type: InputsMappingFileVariableResolverConfigured
test_class.var_name: inputsMappingFileVariableResolverConfigured
test_class.declarator: inputsPropertyDefinitions
test_class.modifier: private
test_class.original_string: private Map<String, PropertyDefinition> inputsPropertyDefinitions;
test_class.type: Map<String, PropertyDefinition>
test_class.var_name: inputsPropertyDefinitions
test_class.file: alien4cloud-core/src/test/java/org/alien4cloud/tosca/variable/InputsMappingFileVariableResolverTest.java
test_class.identifier: InputsMappingFileVariableResolverTest
test_case.body: @Test
      // Good Test
      public void should_list_all_missing_variables_and_unresolved_inputs() throws Exception {
          Resource yamlApp = new FileSystemResource("src/test/resources/alien/variables/variables_app_missing_var.yml");
          inputsMappingFileVariableResolverConfigured = configure(
                  PropertiesYamlParser.ToProperties.from(yamlApp),
                  PropertiesYamlParser.ToProperties.from(yamlApp),
                  PropertiesYamlParser.ToProperties.from(yamlApp),
                  new AlienContextVariables());
  
          Resource inputsMapping = new FileSystemResource("src/test/resources/alien/variables/inputs_mapping_with_missing_variable.yml");
  
          InputsMappingFileVariableResolver.InputsResolvingResult result = inputsMappingFileVariableResolverConfigured
                  .resolve(PropertiesYamlParser.ToMap.from(inputsMapping), inputsPropertyDefinitions);
  
          assertThat(result.getMissingVariables()).hasSize(4);
          assertThat(result.getMissingVariables()).contains("missing_inner_variable", "missing_float_variable", "missing_string_variable",
                  "missing_int_variable");
  
          assertThat(result.getUnresolved()).hasSize(4);
          assertThat(result.getUnresolved()).contains("int_input", "float_input", "string_input", "complex_input");
      }
test_case.class_method_signature: InputsMappingFileVariableResolverTest.should_list_all_missing_variables_and_unresolved_inputs()
test_case.full_signature: @Test // Good Test public void should_list_all_missing_variables_and_unresolved_inputs()
test_case.identifier: should_list_all_missing_variables_and_unresolved_inputs
test_case.invocations: configure from from from resolve from hasSize assertThat getMissingVariables contains assertThat getMissingVariables hasSize assertThat getUnresolved contains assertThat getUnresolved
test_case.modifiers: @Test // Good Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_list_all_missing_variables_and_unresolved_inputs()
focal_class.declarator: VARIABLE_NAME_IN_EXCEPTION_PATTERN = Pattern.compile("Could not resolve placeholder '(.*)' .*", Pattern.DOTALL)
focal_class.modifier: private final static
focal_class.original_string: private final static Pattern VARIABLE_NAME_IN_EXCEPTION_PATTERN = Pattern.compile("Could not resolve placeholder '(.*)' .*", Pattern.DOTALL);
focal_class.type: Pattern
focal_class.var_name: VARIABLE_NAME_IN_EXCEPTION_PATTERN
focal_class.declarator: DEFAULT_CONVERTER = new ToscaTypeConverter(ToscaContext::get)
focal_class.modifier: private final static
focal_class.original_string: private final static ToscaTypeConverter DEFAULT_CONVERTER = new ToscaTypeConverter(ToscaContext::get);
focal_class.type: ToscaTypeConverter
focal_class.var_name: DEFAULT_CONVERTER
focal_class.file: alien4cloud-core/src/main/java/org/alien4cloud/tosca/variable/InputsMappingFileVariableResolver.java
focal_class.identifier: InputsMappingFileVariableResolver
focal_class.class_method_signature: InputsMappingFileVariableResolver.InputsMappingFileVariableResolver()
focal_class.full_signature: private  InputsMappingFileVariableResolver()
focal_class.identifier: InputsMappingFileVariableResolver
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  InputsMappingFileVariableResolver()
focal_class.class_method_signature: InputsMappingFileVariableResolver.configure(Properties appVariables, Properties envTypeVariables, Properties envVariables, AlienContextVariables alienContextVariables)
focal_class.full_signature: public static InputsMappingFileVariableResolverConfigured configure(Properties appVariables, Properties envTypeVariables, Properties envVariables, AlienContextVariables alienContextVariables)
focal_class.identifier: configure
focal_class.modifiers: public static
focal_class.parameters: (Properties appVariables, Properties envTypeVariables, Properties envVariables, AlienContextVariables alienContextVariables)
focal_class.return: InputsMappingFileVariableResolverConfigured
focal_class.signature: InputsMappingFileVariableResolverConfigured configure(Properties appVariables, Properties envTypeVariables, Properties envVariables, AlienContextVariables alienContextVariables)
focal_method.body: public static InputsMappingFileVariableResolverConfigured configure(Properties appVariables, Properties envTypeVariables, Properties envVariables, AlienContextVariables alienContextVariables) {
          return new InputsMappingFileVariableResolverConfigured(appVariables, envTypeVariables, envVariables, alienContextVariables);
      }
focal_method.class_method_signature: InputsMappingFileVariableResolver.configure(Properties appVariables, Properties envTypeVariables, Properties envVariables, AlienContextVariables alienContextVariables)
focal_method.full_signature: public static InputsMappingFileVariableResolverConfigured configure(Properties appVariables, Properties envTypeVariables, Properties envVariables, AlienContextVariables alienContextVariables)
focal_method.identifier: configure
focal_method.modifiers: public static
focal_method.parameters: (Properties appVariables, Properties envTypeVariables, Properties envVariables, AlienContextVariables alienContextVariables)
focal_method.return: InputsMappingFileVariableResolverConfigured
focal_method.signature: InputsMappingFileVariableResolverConfigured configure(Properties appVariables, Properties envTypeVariables, Properties envVariables, AlienContextVariables alienContextVariables)