Package org.powertac.visualizer.web.rest
Class FileResourceIntTest
- java.lang.Object
-
- org.powertac.visualizer.web.rest.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 Summary
Constructors Constructor Description FileResourceIntTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkNameIsRequired()
void
checkSharedIsRequired()
void
checkTypeIsRequired()
static org.powertac.visualizer.domain.File
createEntity(javax.persistence.EntityManager em)
Create an entity for this test.void
createFile()
void
createFileWithExistingId()
void
deleteFile()
void
equalsVerifier()
void
getAllFiles()
void
getFile()
void
getNonExistingFile()
void
initTest()
void
setup()
void
updateFile()
void
updateNonExistingFile()
-
-
-
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()
-
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
-
getNonExistingFile
@Test @Transactional public void getNonExistingFile() throws Exception
- Throws:
Exception
-
updateNonExistingFile
@Test @Transactional public void updateNonExistingFile() throws Exception
- Throws:
Exception
-
-