Class UserResourceIntTest


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

      • UserResourceIntTest

        public UserResourceIntTest()
    • Method Detail

      • createEntity

        public static org.powertac.visualizer.domain.User createEntity​(javax.persistence.EntityManager em)
        Create a User. This is a static method, as tests for other entities might also need it, if they test an entity which has a required relationship to the User entity.
      • setup

        @BeforeEach
        public void setup()
      • testGetExistingUser

        @Test
        public void testGetExistingUser()
                                 throws Exception
        Throws:
        Exception
      • testGetUnknownUser

        @Test
        public void testGetUnknownUser()
                                throws Exception
        Throws:
        Exception