@@ -30,6 +30,7 @@ public void testEmptyConstructor() {
30
30
assertNull (artifact .getSha1 (), "Artifact SHA1 checksum should have not been initialized." );
31
31
assertNull (artifact .getSha256 (), "Artifact SHA256 checksum should have not been initialized." );
32
32
assertNull (artifact .getMd5 (), "Artifact MD5 checksum should have not been initialized." );
33
+ assertNull (artifact .getOriginalDeploymentRepo (), "Artifact original deployment repository should have not been initialized." );
33
34
}
34
35
35
36
/**
@@ -43,6 +44,7 @@ public void testSetters() {
43
44
String md5 = "gog" ;
44
45
String localPath = "blip" ;
45
46
String remotePath = "blop" ;
47
+ String originalDeploymentRepository = "repo" ;
46
48
Properties properties = new Properties ();
47
49
48
50
Artifact artifact = new Artifact ();
@@ -54,6 +56,7 @@ public void testSetters() {
54
56
artifact .setLocalPath (localPath );
55
57
artifact .setRemotePath (remotePath );
56
58
artifact .setProperties (properties );
59
+ artifact .setOriginalDeploymentRepo (originalDeploymentRepository );
57
60
58
61
Assert .assertEquals (artifact .getName (), name , "Unexpected artifact name." );
59
62
Assert .assertEquals (artifact .getType (), type , "Unexpected artifact type." );
@@ -63,6 +66,7 @@ public void testSetters() {
63
66
Assert .assertEquals (artifact .getLocalPath (), localPath , "Unexpected artifact local path." );
64
67
Assert .assertEquals (artifact .getRemotePath (), remotePath , "Unexpected artifact remote path." );
65
68
Assert .assertEquals (artifact .getProperties (), properties , "Unexpected artifact properties." );
69
+ Assert .assertEquals (artifact .getOriginalDeploymentRepo (),originalDeploymentRepository , "Unexpected artifact original deployment repository." );
66
70
}
67
71
68
72
public void testEqualsAndHash () {
@@ -75,6 +79,7 @@ public void testEqualsAndHash() {
75
79
artifact1 .setSha1 ("111" );
76
80
artifact1 .setSha256 ("11111" );
77
81
artifact1 .setMd5 ("1111" );
82
+ artifact1 .setOriginalDeploymentRepo ("repo" );
78
83
artifact1 .setProperties (properties );
79
84
80
85
Artifact artifact2 = new Artifact ();
@@ -83,6 +88,7 @@ public void testEqualsAndHash() {
83
88
artifact2 .setSha1 ("111" );
84
89
artifact2 .setSha256 ("11111" );
85
90
artifact2 .setMd5 ("1111" );
91
+ artifact2 .setOriginalDeploymentRepo ("repo" );
86
92
artifact2 .setProperties (properties );
87
93
88
94
Artifact artifact3 = new Artifact ();
@@ -91,6 +97,7 @@ public void testEqualsAndHash() {
91
97
artifact3 .setSha1 ("1113" );
92
98
artifact3 .setSha256 ("11133" );
93
99
artifact3 .setMd5 ("11113" );
100
+ artifact3 .setOriginalDeploymentRepo ("diff-repo" );
94
101
artifact3 .setProperties (properties );
95
102
96
103
Assert .assertEquals (artifact1 , artifact2 , "Expected equals == true for equivalent artifacts" );
0 commit comments