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 voidcheckNameIsRequired()voidcheckSharedIsRequired()voidcheckTypeIsRequired()static org.powertac.visualizer.domain.GamecreateEntity(javax.persistence.EntityManager em)Create an entity for this test.voidcreateGame()voidcreateGameWithExistingId()voiddeleteGame()voidequalsVerifier()voidgetAllGames()voidgetGame()voidgetNonExistingGame()voidinitTest()voidsetup()voidupdateGame()voidupdateNonExistingGame()
-
-
-
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
-
-