|
@@ -4,12 +4,8 @@ |
|
|
*/ |
|
|
*/ |
|
|
package bubble.test.system; |
|
|
package bubble.test.system; |
|
|
|
|
|
|
|
|
import bubble.dao.account.AccountDAO; |
|
|
|
|
|
import bubble.model.account.Account; |
|
|
|
|
|
import bubble.test.ActivatedBubbleModelTestBase; |
|
|
import bubble.test.ActivatedBubbleModelTestBase; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.cobbzilla.wizard.model.HashedPassword; |
|
|
|
|
|
import org.junit.Before; |
|
|
|
|
|
import org.junit.Test; |
|
|
import org.junit.Test; |
|
|
|
|
|
|
|
|
@Slf4j |
|
|
@Slf4j |
|
@@ -17,13 +13,6 @@ public class AccountDeletionTest extends ActivatedBubbleModelTestBase { |
|
|
|
|
|
|
|
|
@Override protected String getManifest() { return "manifest-test"; } |
|
|
@Override protected String getManifest() { return "manifest-test"; } |
|
|
|
|
|
|
|
|
@Before public void resetRootPassword() { |
|
|
|
|
|
// reset root password, some tests change it |
|
|
|
|
|
final AccountDAO accountDAO = getConfiguration().getBean(AccountDAO.class); |
|
|
|
|
|
final Account rootUser = accountDAO.findFirstAdmin(); |
|
|
|
|
|
accountDAO.update(rootUser.setHashedPassword(new HashedPassword(ROOT_PASSWORD))); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test public void testFullAccountDeletion() throws Exception { modelTest("account_deletion/full_delete_account"); } |
|
|
@Test public void testFullAccountDeletion() throws Exception { modelTest("account_deletion/full_delete_account"); } |
|
|
@Test public void testBlockAccountDeletion() throws Exception { modelTest("account_deletion/block_delete_account"); } |
|
|
@Test public void testBlockAccountDeletion() throws Exception { modelTest("account_deletion/block_delete_account"); } |
|
|
|
|
|
|
|
|