Skip to content

Commit aa7cfab

Browse files
committed
minor upgrade/downgrade detection: tests update
1 parent 98b0f57 commit aa7cfab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/scm4j/releaser/WorkflowPatchesTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public void testMinorUpgradeDowngradeException() {
200200
} catch (EMinorUpgradeDowngrade e) {
201201
if (e.getRootComp().equals(compUBL.clone(crbUBL.getVersion().toPreviousPatch()))) {
202202
assertEquals(compUnTillDb.clone("2.59.0"), e.getProblematicMDep());
203-
} else if (e.getRootComp().equals(compUBL.clone(crbUnTill.getVersion().toPreviousPatch()))) {
203+
} else if (e.getRootComp().equals(compUnTill.clone(crbUnTill.getVersion().toPreviousPatch()))) {
204204
assertEquals(compUnTillDb.clone("2.60.0"), e.getProblematicMDep());
205205
} else {
206206
fail();
@@ -230,7 +230,7 @@ public void testPatchDowngradeException() {
230230
} catch (EMinorUpgradeDowngrade e) {
231231
if (e.getRootComp().equals(compUBL.clone(crbUBL.getVersion().toPreviousPatch()))) {
232232
assertEquals(compUnTillDb.clone("2.59.1"), e.getProblematicMDep());
233-
} else if (e.getRootComp().equals(compUBL.clone(crbUnTill.getVersion().toPreviousPatch()))) {
233+
} else if (e.getRootComp().equals(compUnTill.clone(crbUnTill.getVersion().toPreviousPatch()))) {
234234
assertEquals(compUnTillDb.clone("2.59.0"), e.getProblematicMDep());
235235
} else {
236236
fail();

0 commit comments

Comments
 (0)