Package org.powertac.visualizer.web.rest
Class ChartResourceIntTest
- java.lang.Object
-
- org.powertac.visualizer.web.rest.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 Summary
Constructors Constructor Description ChartResourceIntTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckNameIsRequired()voidcheckSharedIsRequired()voidcreateChart()voidcreateChartWithExistingId()static org.powertac.visualizer.domain.ChartcreateEntity(javax.persistence.EntityManager em)Create an entity for this test.voiddeleteChart()voidequalsVerifier()voidgetAllCharts()voidgetChart()voidgetNonExistingChart()voidinitTest()voidsetup()voidupdateChart()voidupdateNonExistingChart()
-
-
-
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()
-
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
-
getNonExistingChart
@Test @Transactional public void getNonExistingChart() throws Exception- Throws:
Exception
-
updateNonExistingChart
@Test @Transactional public void updateNonExistingChart() throws Exception- Throws:
Exception
-
-