commit e428abf5e6e076a9ddc04a74bf93218ed17ccc68
Author: Michael Simacek <msimacek(a)redhat.com>
Date: Thu Oct 3 11:50:29 2013 +0200
Add test case for rhbz#1012982
.../test_compare_jar_class_ext-want.war | Bin 0 -> 671 bytes
test/maven_depmap_test.py | 9 +++++++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/test/data/maven_depmap/test_compare_jar_class_ext-want.war
b/test/data/maven_depmap/test_compare_jar_class_ext-want.war
new file mode 100644
index 0000000..6595ed7
Binary files /dev/null and b/test/data/maven_depmap/test_compare_jar_class_ext-want.war
differ
diff --git a/test/maven_depmap_test.py b/test/maven_depmap_test.py
index d73eaff..e6f8081 100644
--- a/test/maven_depmap_test.py
+++ b/test/maven_depmap_test.py
@@ -12,6 +12,7 @@ from formencode import doctest_xml_compare
class TestMavenDepmap(unittest.TestCase):
def setUp(self):
+ self.maxDiff = 2048
try:
dirpath = os.path.dirname(os.path.realpath(__file__))
self.olddir = os.getcwd()
@@ -230,6 +231,14 @@ class TestMavenDepmap(unittest.TestCase):
'usr/foo/share/java/.out_archive.jar')
self.assertEqual(got, want)
+ #test case for rhbz#1012982
+ @mvn_depmap('x:y:war:z:0.1',
'usr/foo/share/java/.out_archive-z.war')
+ def test_compare_jar_class_ext(self, stdout, stderr, return_value, depmap):
+ self.assertEqual(return_value, 0, stderr)
+ got, want = self.check_archive(inspect.currentframe().f_code.co_name,
+ 'usr/foo/share/java/.out_archive-z.war')
+ self.assertEqual(got, want)
+
@mvn_depmap('a:b:12',
'usr/share/java/already-has-pom-properties.jar')
def test_compare_jar_unmodified(self, stdout, stderr, return_value, depmap):
self.assertEqual(return_value, 0, stderr)
Show replies by date