Browse Source

unittest: created test for location class

This tests the name of the location
remotes/origin/develop
David Hermann 2 years ago
parent
commit
8dda2401d1
  1. 24
      src/test/java/org/bitbiome/entitiesTest/LocationTest.java

24
src/test/java/org/bitbiome/entitiesTest/LocationTest.java

@ -0,0 +1,24 @@
package org.bitbiome.entitiesTest;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.bitbiome.entities.Location;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
public class LocationTest {
private static Location location;
@BeforeAll
public static void setLocation() {
location = new Location();
location.setName("NewUnitWorld");
}
@Test
public void testLocationName() {
assertEquals("NewUnitWorld", location.getName());
}
}
Loading…
Cancel
Save