Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Escobar2014-06-07 00:16:39 -0400
committerRoberto E. Escobar2014-06-18 13:21:18 -0400
commit72650555ae15a8b604d5f0e92019d4d4deadea76 (patch)
tree59b1f3a25f8b304cfd4b78759110d37b3c19d034 /plugins/org.eclipse.osee.orcs.account.admin.test
parenteb4aa26d68fb87d2a55638cbe9591204897ac105 (diff)
downloadorg.eclipse.osee-72650555ae15a8b604d5f0e92019d4d4deadea76.tar.gz
org.eclipse.osee-72650555ae15a8b604d5f0e92019d4d4deadea76.tar.xz
org.eclipse.osee-72650555ae15a8b604d5f0e92019d4d4deadea76.zip
refactor[ats_ATS64153]: Extract common AbstractOrcsStorage class
Diffstat (limited to 'plugins/org.eclipse.osee.orcs.account.admin.test')
-rw-r--r--plugins/org.eclipse.osee.orcs.account.admin.test/src/org/eclipse/osee/orcs/account/admin/integration/OrcsAccountStorageTest.java (renamed from plugins/org.eclipse.osee.orcs.account.admin.test/src/org/eclipse/osee/orcs/account/admin/integration/OrcsAccountStorageImplTest.java)10
-rw-r--r--plugins/org.eclipse.osee.orcs.account.admin.test/src/org/eclipse/osee/orcs/account/admin/integration/OsgiIntegrationTestSuite.java2
2 files changed, 5 insertions, 7 deletions
diff --git a/plugins/org.eclipse.osee.orcs.account.admin.test/src/org/eclipse/osee/orcs/account/admin/integration/OrcsAccountStorageImplTest.java b/plugins/org.eclipse.osee.orcs.account.admin.test/src/org/eclipse/osee/orcs/account/admin/integration/OrcsAccountStorageTest.java
index 2e693a758f9..3fe21642779 100644
--- a/plugins/org.eclipse.osee.orcs.account.admin.test/src/org/eclipse/osee/orcs/account/admin/integration/OrcsAccountStorageImplTest.java
+++ b/plugins/org.eclipse.osee.orcs.account.admin.test/src/org/eclipse/osee/orcs/account/admin/integration/OrcsAccountStorageTest.java
@@ -19,15 +19,14 @@ import static org.mockito.MockitoAnnotations.initMocks;
import java.util.HashMap;
import java.util.Map;
import org.eclipse.osee.account.admin.Account;
-import org.eclipse.osee.account.admin.AccountSession;
-import org.eclipse.osee.account.admin.AccountAdmin;
import org.eclipse.osee.account.admin.AccountPreferences;
+import org.eclipse.osee.account.admin.AccountSession;
import org.eclipse.osee.account.admin.CreateAccountRequest;
import org.eclipse.osee.account.admin.ds.AccountStorage;
import org.eclipse.osee.framework.jdk.core.type.Identifiable;
import org.eclipse.osee.framework.jdk.core.type.ResultSet;
import org.eclipse.osee.framework.jdk.core.util.Compare;
-import org.eclipse.osee.orcs.account.admin.internal.OrcsAccountStorageImpl;
+import org.eclipse.osee.orcs.account.admin.internal.OrcsAccountStorage;
import org.eclipse.osee.orcs.db.mock.OsgiService;
import org.junit.Assert;
import org.junit.Before;
@@ -39,11 +38,11 @@ import org.junit.rules.TestRule;
import org.mockito.Mock;
/**
- * Test Case for {@link AccountAdmin} using {@link OrcsAccountStorageImpl}
+ * Test Case for {@link OrcsAccountStorage}
*
* @author Roberto E. Escobar
*/
-public class OrcsAccountStorageImplTest {
+public class OrcsAccountStorageTest {
@Rule
public TestRule osgi = OrcsIntegrationRule.integrationRule(this, "osee.demo.hsql");
@@ -216,7 +215,6 @@ public class OrcsAccountStorageImplTest {
assertNotNull(actual.getCreatedOn());
assertNotNull(actual.getLastAccessedOn());
- //
ResultSet<AccountSession> result = storage.getAccountSessionBySessionToken(token);
AccountSession actualAccess = result.getExactlyOne();
assertEquals(actual, actualAccess);
diff --git a/plugins/org.eclipse.osee.orcs.account.admin.test/src/org/eclipse/osee/orcs/account/admin/integration/OsgiIntegrationTestSuite.java b/plugins/org.eclipse.osee.orcs.account.admin.test/src/org/eclipse/osee/orcs/account/admin/integration/OsgiIntegrationTestSuite.java
index 76b24c91fad..b0cc10a2bda 100644
--- a/plugins/org.eclipse.osee.orcs.account.admin.test/src/org/eclipse/osee/orcs/account/admin/integration/OsgiIntegrationTestSuite.java
+++ b/plugins/org.eclipse.osee.orcs.account.admin.test/src/org/eclipse/osee/orcs/account/admin/integration/OsgiIntegrationTestSuite.java
@@ -17,7 +17,7 @@ import org.junit.runners.Suite;
* @author Roberto E. Escobar
*/
@RunWith(Suite.class)
-@Suite.SuiteClasses({OrcsAccountStorageImplTest.class})
+@Suite.SuiteClasses({OrcsAccountStorageTest.class})
public class OsgiIntegrationTestSuite {
// Test Suite
}

Back to the top