Package org.powertac.visualizer.web.rest
Class GraphResourceIntTest
- java.lang.Object
-
- org.powertac.visualizer.web.rest.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 Summary
Constructors Constructor Description GraphResourceIntTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckNameIsRequired()voidcheckSharedIsRequired()voidcheckTypeIsRequired()static org.powertac.visualizer.domain.GraphcreateEntity(javax.persistence.EntityManager em)Create an entity for this test.voidcreateGraph()voidcreateGraphWithExistingId()voiddeleteGraph()voidequalsVerifier()voidgetAllGraphs()voidgetGraph()voidgetNonExistingGraph()voidinitTest()voidsetup()voidupdateGraph()voidupdateNonExistingGraph()
-
-
-
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()
-
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
-
getNonExistingGraph
@Test @Transactional public void getNonExistingGraph() throws Exception- Throws:
Exception
-
updateNonExistingGraph
@Test @Transactional public void updateNonExistingGraph() throws Exception- Throws:
Exception
-
-