Class GraphResourceIntTest


  • @ExtendWith(org.springframework.test.context.junit.jupiter.SpringExtension.class)
    @SpringBootTest(classes=org.powertac.visualizer.Visualizer2App.class)
    public class GraphResourceIntTest
    extends Object
    Test class for the GraphResource REST controller.
    See Also:
    GraphResource
    • Constructor Detail

      • GraphResourceIntTest

        public GraphResourceIntTest()
    • Method Detail

      • setup

        @BeforeEach
        public void setup()
      • createEntity

        public static org.powertac.visualizer.domain.Graph 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()
      • createGraph

        @Test
        @Transactional
        public void createGraph()
                         throws Exception
        Throws:
        Exception
      • createGraphWithExistingId

        @Test
        @Transactional
        public void createGraphWithExistingId()
                                       throws Exception
        Throws:
        Exception
      • checkNameIsRequired

        @Test
        @Transactional
        public void checkNameIsRequired()
                                 throws Exception
        Throws:
        Exception
      • checkTypeIsRequired

        @Test
        @Transactional
        public void checkTypeIsRequired()
                                 throws Exception
        Throws:
        Exception
      • checkSharedIsRequired

        @Test
        @Transactional
        public void checkSharedIsRequired()
                                   throws Exception
        Throws:
        Exception
      • getAllGraphs

        @Test
        @Transactional
        public void getAllGraphs()
                          throws Exception
        Throws:
        Exception
      • getGraph

        @Test
        @Transactional
        public void getGraph()
                      throws Exception
        Throws:
        Exception
      • getNonExistingGraph

        @Test
        @Transactional
        public void getNonExistingGraph()
                                 throws Exception
        Throws:
        Exception
      • updateGraph

        @Test
        @Transactional
        public void updateGraph()
                         throws Exception
        Throws:
        Exception
      • updateNonExistingGraph

        @Test
        @Transactional
        public void updateNonExistingGraph()
                                    throws Exception
        Throws:
        Exception
      • deleteGraph

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