Browse Source

unittest: created test for item class

This is testing the name of the item
remotes/origin/develop
David Hermann 2 years ago
parent
commit
56fb3c546c
  1. 23
      src/test/java/org/bitbiome/entitiesTest/ItemTest.java

23
src/test/java/org/bitbiome/entitiesTest/ItemTest.java

@ -0,0 +1,23 @@
package org.bitbiome.entitiesTest;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.bitbiome.entities.Item;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
public class ItemTest {
private static Item item;
@BeforeAll
public static void setItem() {
item = new Item();
item.setName("Unit");
}
@Test
public void testGetName() {
assertEquals("Unit", item.getName());
}
}
Loading…
Cancel
Save