Package org.powertac.visualizer.web.rest
Class ViewResourceIntTest
- java.lang.Object
-
- org.powertac.visualizer.web.rest.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 Summary
Constructors Constructor Description ViewResourceIntTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckGraphsIsRequired()voidcheckNameIsRequired()voidcheckSharedIsRequired()static org.powertac.visualizer.domain.ViewcreateEntity(javax.persistence.EntityManager em)Create an entity for this test.voidcreateView()voidcreateViewWithExistingId()voiddeleteView()voidequalsVerifier()voidgetAllViews()voidgetNonExistingView()voidgetView()voidinitTest()voidsetup()voidupdateNonExistingView()voidupdateView()
-
-
-
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()
-
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
-
getNonExistingView
@Test @Transactional public void getNonExistingView() throws Exception- Throws:
Exception
-
updateNonExistingView
@Test @Transactional public void updateNonExistingView() throws Exception- Throws:
Exception
-
-