Class FileResourceIntTest


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

      • FileResourceIntTest

        public FileResourceIntTest()
    • Method Detail

      • setup

        @BeforeEach
        public void setup()
      • createEntity

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

        @Test
        @Transactional
        public void createFile()
                        throws Exception
        Throws:
        Exception
      • createFileWithExistingId

        @Test
        @Transactional
        public void createFileWithExistingId()
                                      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
      • getAllFiles

        @Test
        @Transactional
        public void getAllFiles()
                         throws Exception
        Throws:
        Exception
      • getNonExistingFile

        @Test
        @Transactional
        public void getNonExistingFile()
                                throws Exception
        Throws:
        Exception
      • updateFile

        @Test
        @Transactional
        public void updateFile()
                        throws Exception
        Throws:
        Exception
      • updateNonExistingFile

        @Test
        @Transactional
        public void updateNonExistingFile()
                                   throws Exception
        Throws:
        Exception
      • deleteFile

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