Ejemplo n.º 1
0
 def test_not_pom(self):
     stdout, stderr, return_value = call_script(
         os.path.join(DIRPATH, '..', 'java-utils', 'maven_depmap.py'), [
             '.out', 'usr/share/java/commons-io.jar',
             'usr/share/java/commons-io.jar'
         ])
     self.assertNotEqual(return_value, 0)
Ejemplo n.º 2
0
 def test_builddep(self):
     with open('.xmvn-builddep', 'w') as f:
         print('Lorem ipsum dolor sit amet, consectetur adipiscing elit,',
               file=f)
         print(
             'sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
             file=f)
         print('[...]', file=f)
     scriptpath = os.path.join(DIRPATH, '..', 'java-utils', 'mvn_build.py')
     (stdout, stderr, return_value) = call_script(scriptpath, [])
     self.assertEqual(return_value, 0, stderr)
     lines = stdout.splitlines()
     self.assertEqual(lines[0], '-----BEGIN MAVEN BUILD DEPENDENCIES-----')
     self.assertEqual(
         lines[1],
         'H4sIAAAAAAAC/yXMwQ0DIQwEwD9VbAEnKkkHUR4+bJ0sYSDY7j9IKWDmNbcYdHkaePa54Rogk7jQ'
     )
     self.assertEqual(
         lines[2],
         '5nBpIZEbxLrUm44H0jWu4sIHQDTdJiPE1sE6mrJyjkAGOt2nh8S/Fhg9g0Bdv0m1vGutn/IDOadj'
     )
     self.assertEqual(lines[3], 'dIIAAAA=')
     self.assertEqual(lines[4], '-----END MAVEN BUILD DEPENDENCIES-----')
Ejemplo n.º 3
0
 def test_no_args(self):
     stdout, stderr, return_value = call_script(os.path.join(DIRPATH, '..',
         'java-utils', 'maven_depmap.py'),
             [])
     self.assertNotEqual(return_value, 0)
Ejemplo n.º 4
0
 def test_not_pom(self):
     stdout, stderr, return_value = call_script(os.path.join(DIRPATH, '..',
         'java-utils', 'maven_depmap.py'),
             ['.out', 'usr/share/java/commons-io.jar',
                 'usr/share/java/commons-io.jar'])
     self.assertNotEqual(return_value, 0)
Ejemplo n.º 5
0
 def test_no_args(self):
     stdout, stderr, return_value = call_script(
         os.path.join(DIRPATH, '..', 'java-utils', 'maven_depmap.py'), [])
     self.assertNotEqual(return_value, 0)