Add GameType Entity, Service and Repository. Test add GameType done.
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
package fr.eni.demo;
|
||||
|
||||
import fr.eni.demo.bll.ClientService;
|
||||
import fr.eni.demo.bll.GameTypeService;
|
||||
import fr.eni.demo.bll.LocationService;
|
||||
import fr.eni.demo.bo.Client;
|
||||
import fr.eni.demo.bo.GameType;
|
||||
import fr.eni.demo.bo.Location;
|
||||
import org.junit.jupiter.api.DisplayName;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@@ -14,9 +16,10 @@ class DemoApplicationTests {
|
||||
|
||||
@Autowired
|
||||
private ClientService clientService;
|
||||
|
||||
@Autowired
|
||||
private LocationService locationService;
|
||||
@Autowired
|
||||
private GameTypeService gameTypeService;
|
||||
|
||||
@Test
|
||||
@DisplayName("-- Test add Client --")
|
||||
@@ -67,4 +70,13 @@ class DemoApplicationTests {
|
||||
System.out.println(location);
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName("-- Test add Game Type --")
|
||||
void testAddGameType() {
|
||||
GameType gameType = new GameType();
|
||||
gameType.setName("RPG");
|
||||
gameTypeService.add(gameType);
|
||||
System.out.println(gameType);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user