Exemplo n.º 1
0
    def test_findbugs_switch(self):
        process_utils = Mock()
        process_utils.default_check_output(b'Apache Maven: 3.0.5')
        self.jmake_ut = UnitTest(Mock(), process_utils=process_utils)
        self.jmake_ut(Mock(vdep=False, skip_bp=False, findbugs=True), self.executor)

        self.assertEqual(len(self.executor), 2)
        maven = self.executor[1]
        self.assertIn('verifyDependencies', maven.properties)
        self.assertIsInstance(maven.maven_version, Maven3)
        self.assertIn('findbugs', maven.profiles)
Exemplo n.º 2
0
    def test_findbugs_switch(self):
        process_utils = Mock()
        process_utils.default_check_output(b'Apache Maven: 3.0.5')
        self.jmake_ut = UnitTest(Mock(), process_utils=process_utils)
        self.jmake_ut(Mock(vdep=False, skip_bp=False, findbugs=True),
                      self.executor)

        self.assertEqual(len(self.executor), 2)
        maven = self.executor[1]
        self.assertIn('verifyDependencies', maven.properties)
        self.assertIsInstance(maven.maven_version, Maven3)
        self.assertIn('findbugs', maven.profiles)
Exemplo n.º 3
0
 def setUp(self):
     process_utils = Mock()
     process_utils.default_check_output(b'Apache Maven: 3.0.5')
     self.jmake_fb = Findbugs(process_utils=process_utils)
     self.executor = []
Exemplo n.º 4
0
 def setUp(self):
     process_utils = Mock()
     process_utils.default_check_output(b'Apache Maven: 3.0.5')
     self.jmake_fb = Findbugs(process_utils=process_utils)
     self.executor = []