Add GameType Entity, Service and Repository. Test add GameType done.

This commit is contained in:
Olivier PARPAILLON
2025-07-09 11:15:17 +02:00
parent 76736405a3
commit eac38d9f4b
5 changed files with 69 additions and 1 deletions

View File

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