my changes

main
Philipp3107 2023-01-10 01:05:36 +01:00
parent a7dd881817
commit 2b3ac712d8
7 changed files with 13 additions and 1 deletions

View File

@ -11,7 +11,6 @@ public class Factory implements Serializable {
private int r2d2ID = 10000;
public Factory(){
}
/**
* @return Collection<Robot></Robot>

View File

@ -1,11 +1,20 @@
package tests.tests;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import src.domain.C3PO;
import src.domain.Factory;
import src.domain.RobotType;
import static org.junit.jupiter.api.Assertions.*;
class FactoryTest {
Factory f;
@BeforeEach
void setup(){
f = new Factory();
}
@Test
void robotListToCollection() {
@ -18,9 +27,13 @@ class FactoryTest {
@Test
void buildNewRobot() {
asserEquals(true, f.buildNewRobot("herbi", RobotType.R2D2));
}
@Test
void getRobotOfList() {
String[] test = new String[0];
assertEquals(test, f.getRobotList());
}
}