Class 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 Detail

      • GameResourceIntTest

        public GameResourceIntTest()
    • 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()
      • createGame

        @Test
        @Transactional
        public void createGame()
                        throws Exception
        Throws:
        Exception
      • 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
      • getAllGames

        @Test
        @Transactional
        public void getAllGames()
                         throws Exception
        Throws:
        Exception
      • getNonExistingGame

        @Test
        @Transactional
        public void getNonExistingGame()
                                throws Exception
        Throws:
        Exception
      • updateGame

        @Test
        @Transactional
        public void updateGame()
                        throws Exception
        Throws:
        Exception
      • updateNonExistingGame

        @Test
        @Transactional
        public void updateNonExistingGame()
                                   throws Exception
        Throws:
        Exception
      • deleteGame

        @Test
        @Transactional
        public void deleteGame()
                        throws Exception
        Throws:
        Exception