From 90df951bedfd87ede36ac89af82ceb5703010fc9 Mon Sep 17 00:00:00 2001 From: kasungayan Date: Fri, 20 May 2016 02:51:06 +0530 Subject: [PATCH] Fixing Testcase: AccountLockEnabledTestCase --- .../test/identity/mgt/AccountLockEnabledTestCase.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/identity/mgt/AccountLockEnabledTestCase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/identity/mgt/AccountLockEnabledTestCase.java index 63e39eeed24..830463b40e9 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/identity/mgt/AccountLockEnabledTestCase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/identity/mgt/AccountLockEnabledTestCase.java @@ -138,11 +138,10 @@ public void testSuccessfulEmailRetrieval() { @AfterClass(alwaysRun = true) public void atEnd() throws Exception { - File identityMgtConfigFile = new File(getISResourceLocation() - + File.separator + "identityMgt" + File.separator - + "identity-accountlock-enabled.xml"); + usmClient.deleteUser(testLockUser1); + usmClient.deleteUser(testLockUser2); - scm.applyConfigurationWithoutRestart(identityMgtConfigFile, identityXmlServerFile, true); + scm.restoreToLastConfiguration(); scm.restartGracefully(); }