Migrate to JUnit5

This commit is contained in:
Artur Mogozov
2017-12-31 16:29:48 +09:00
parent a20e54d0a7
commit 6694d742a3
408 changed files with 2656 additions and 2165 deletions

View File

@ -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);
}
}