Class ViewResourceIntTest


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

      • ViewResourceIntTest

        public ViewResourceIntTest()
    • Method Detail

      • setup

        @BeforeEach
        public void setup()
      • createEntity

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

        @Test
        @Transactional
        public void createView()
                        throws Exception
        Throws:
        Exception
      • createViewWithExistingId

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

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

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

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

        @Test
        @Transactional
        public void getAllViews()
                         throws Exception
        Throws:
        Exception
      • getNonExistingView

        @Test
        @Transactional
        public void getNonExistingView()
                                throws Exception
        Throws:
        Exception
      • updateView

        @Test
        @Transactional
        public void updateView()
                        throws Exception
        Throws:
        Exception
      • updateNonExistingView

        @Test
        @Transactional
        public void updateNonExistingView()
                                   throws Exception
        Throws:
        Exception
      • deleteView

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