Class AccountResourceIntTest


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

      • AccountResourceIntTest

        public AccountResourceIntTest()
    • Method Detail

      • setup

        @BeforeEach
        public void setup()
      • testNonAuthenticatedUser

        @Test
        public void testNonAuthenticatedUser()
                                      throws Exception
        Throws:
        Exception
      • testAuthenticatedUser

        @Test
        public void testAuthenticatedUser()
                                   throws Exception
        Throws:
        Exception
      • testGetExistingAccount

        @Test
        public void testGetExistingAccount()
                                    throws Exception
        Throws:
        Exception
      • testGetUnknownAccount

        @Test
        public void testGetUnknownAccount()
                                   throws Exception
        Throws:
        Exception
      • testRegisterValid

        @Test
        @Transactional
        public void testRegisterValid()
                               throws Exception
        Throws:
        Exception
      • testRegisterInvalidLogin

        @Test
        @Transactional
        public void testRegisterInvalidLogin()
                                      throws Exception
        Throws:
        Exception
      • testRegisterInvalidPassword

        @Test
        @Transactional
        public void testRegisterInvalidPassword()
                                         throws Exception
        Throws:
        Exception
      • testRegisterDuplicateLogin

        @Test
        @Transactional
        public void testRegisterDuplicateLogin()
                                        throws Exception
        Throws:
        Exception
      • testRegisterAdminIsIgnored

        @Test
        @Transactional
        public void testRegisterAdminIsIgnored()
                                        throws Exception
        Throws:
        Exception
      • testSaveInvalidLogin

        @Test
        @Transactional
        public void testSaveInvalidLogin()
                                  throws Exception
        Throws:
        Exception