Ejemplo n.º 1
0
 def test_step_implementer_config_defaults(self):
     defaults = Maven.step_implementer_config_defaults()
     expected_defaults = {
         'pom-file': 'pom.xml',
         'artifact-extensions': ["jar", "war", "ear"],
         'artifact-parent-dir': 'target'
     }
     self.assertEqual(defaults, expected_defaults)
    def test_defaults(self, mock_super_init):
        workflow_result = WorkflowResult()
        parent_work_dir_path = '/fake/path'
        config = {}

        Maven(workflow_result=workflow_result,
              parent_work_dir_path=parent_work_dir_path,
              config=config)

        mock_super_init.assert_called_once_with(
            workflow_result=workflow_result,
            parent_work_dir_path=parent_work_dir_path,
            config=config,
            environment=None)
 def test__required_config_or_result_keys(self):
     required_keys = Maven._required_config_or_result_keys()
     expected_required_keys = [
         'pom-file'
     ]
     self.assertEqual(required_keys, expected_required_keys)