Package org.powertac.visualizer.web.rest
Class AccountResourceIntTest
- java.lang.Object
-
- org.powertac.visualizer.web.rest.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 Summary
Constructors Constructor Description AccountResourceIntTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setup()
void
testAuthenticatedUser()
void
testGetExistingAccount()
void
testGetUnknownAccount()
void
testNonAuthenticatedUser()
void
testRegisterAdminIsIgnored()
void
testRegisterDuplicateLogin()
void
testRegisterInvalidLogin()
void
testRegisterInvalidPassword()
void
testRegisterValid()
void
testSaveInvalidLogin()
-
-
-
Method Detail
-
setup
@BeforeEach public void setup()
-
testNonAuthenticatedUser
@Test public void testNonAuthenticatedUser() throws Exception
- Throws:
Exception
-
testGetExistingAccount
@Test public void testGetExistingAccount() 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
-
-