Class ChartResourceIntTest


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

      • ChartResourceIntTest

        public ChartResourceIntTest()
    • Method Detail

      • setup

        @BeforeEach
        public void setup()
      • createEntity

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

        @Test
        @Transactional
        public void createChart()
                         throws Exception
        Throws:
        Exception
      • createChartWithExistingId

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

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

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

        @Test
        @Transactional
        public void getAllCharts()
                          throws Exception
        Throws:
        Exception
      • getChart

        @Test
        @Transactional
        public void getChart()
                      throws Exception
        Throws:
        Exception
      • getNonExistingChart

        @Test
        @Transactional
        public void getNonExistingChart()
                                 throws Exception
        Throws:
        Exception
      • updateChart

        @Test
        @Transactional
        public void updateChart()
                         throws Exception
        Throws:
        Exception
      • updateNonExistingChart

        @Test
        @Transactional
        public void updateNonExistingChart()
                                    throws Exception
        Throws:
        Exception
      • deleteChart

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