Package org.powertac.visualizer.web.rest
Class GameResourceIntTest
- java.lang.Object
-
- org.powertac.visualizer.web.rest.GameResourceIntTest
-
@ExtendWith(org.springframework.test.context.junit.jupiter.SpringExtension.class) @SpringBootTest(classes=org.powertac.visualizer.Visualizer2App.class) public class GameResourceIntTest extends Object
Test class for the GameResource REST controller.- See Also:
GameResource
-
-
Constructor Summary
Constructors Constructor Description GameResourceIntTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkNameIsRequired()
void
checkSharedIsRequired()
void
checkTypeIsRequired()
static org.powertac.visualizer.domain.Game
createEntity(javax.persistence.EntityManager em)
Create an entity for this test.void
createGame()
void
createGameWithExistingId()
void
deleteGame()
void
equalsVerifier()
void
getAllGames()
void
getGame()
void
getNonExistingGame()
void
initTest()
void
setup()
void
updateGame()
void
updateNonExistingGame()
-
-
-
Method Detail
-
setup
@BeforeEach public void setup()
-
createEntity
public static org.powertac.visualizer.domain.Game createEntity(javax.persistence.EntityManager em)
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
-
initTest
@BeforeEach public void initTest()
-
createGameWithExistingId
@Test @Transactional public void createGameWithExistingId() throws Exception
- Throws:
Exception
-
checkTypeIsRequired
@Test @Transactional public void checkTypeIsRequired() throws Exception
- Throws:
Exception
-
checkNameIsRequired
@Test @Transactional public void checkNameIsRequired() throws Exception
- Throws:
Exception
-
checkSharedIsRequired
@Test @Transactional public void checkSharedIsRequired() throws Exception
- Throws:
Exception
-
getNonExistingGame
@Test @Transactional public void getNonExistingGame() throws Exception
- Throws:
Exception
-
updateNonExistingGame
@Test @Transactional public void updateNonExistingGame() throws Exception
- Throws:
Exception
-
-