code-coverage-Emilia #24

Merged
erns6604 merged 14 commits from code-coverage-Emilia into main 2025-10-31 16:29:43 +01:00
Showing only changes of commit 3450d06c42 - Show all commits

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