Migrate to JUnit5
This commit is contained in:
@ -22,10 +22,10 @@
|
||||
*/
|
||||
package com.iluwatar.doubledispatch;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
/**
|
||||
* Date: 12/10/15 - 8:37 PM
|
||||
* Test for Collision
|
||||
@ -86,7 +86,7 @@ public abstract class CollisionTest<O extends GameObject> {
|
||||
? "Expected [" + targetName + "] to be on fire after colliding with [" + otherName + "] but it was not!"
|
||||
: "Expected [" + targetName + "] not to be on fire after colliding with [" + otherName + "] but it was!";
|
||||
|
||||
assertEquals(errorMessage, expectTargetOnFire, target.isOnFire());
|
||||
assertEquals(expectTargetOnFire, target.isOnFire(), errorMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -105,7 +105,7 @@ public abstract class CollisionTest<O extends GameObject> {
|
||||
? "Expected [" + targetName + "] to be damaged after colliding with [" + otherName + "] but it was not!"
|
||||
: "Expected [" + targetName + "] not to be damaged after colliding with [" + otherName + "] but it was!";
|
||||
|
||||
assertEquals(errorMessage, expectedDamage, target.isDamaged());
|
||||
assertEquals(expectedDamage, target.isDamaged(), errorMessage);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user