code-coverage-Emilia #24
17
src/test/java/EntityTest.java
Normal file
17
src/test/java/EntityTest.java
Normal file
@@ -0,0 +1,17 @@
|
||||
import Entity.Entity;
|
||||
import Entity.Player;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
import static org.hamcrest.Matchers.not;
|
||||
import static org.junit.jupiter.api.Assertions.assertNotEquals;
|
||||
|
||||
public class EntityTest {
|
||||
private final String DEFAULT_NAME = "John";
|
||||
@Test
|
||||
void entity_does_not_equal_other_objects() {
|
||||
Entity p = new Player(DEFAULT_NAME);
|
||||
assertNotEquals("", p);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user