Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Escobar2014-04-01 13:34:55 -0400
committerRyan D. Brooks2014-04-01 13:34:55 -0400
commit3aa4c2bda93bd8b366616b6ec3b4f14741929bb2 (patch)
treeb43b51c7aa55cd56bf63c035d7c8dbc31da53141 /plugins/org.eclipse.osee.orcs.account.admin.test
parent0bb1f46ee4e5fa6c9850a9f5e344e36ac8f43cf4 (diff)
downloadorg.eclipse.osee-3aa4c2bda93bd8b366616b6ec3b4f14741929bb2.tar.gz
org.eclipse.osee-3aa4c2bda93bd8b366616b6ec3b4f14741929bb2.tar.xz
org.eclipse.osee-3aa4c2bda93bd8b366616b6ec3b4f14741929bb2.zip
refactor: Rename AccountAccess to AccountSession
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/OrcsAccountStorageImplTest.java14
1 files changed, 7 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/OrcsAccountStorageImplTest.java
index d1761caebc..2e693a758f 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/OrcsAccountStorageImplTest.java
@@ -19,7 +19,7 @@ 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.AccountAccess;
+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.CreateAccountRequest;
@@ -208,21 +208,21 @@ public class OrcsAccountStorageImplTest {
Account account = storage.getAccountByUuid(newAccount.getGuid()).getExactlyOne();
- AccountAccess actual = storage.createAccountAccess(token, account, address, details);
+ AccountSession actual = storage.createAccountSession(token, account, address, details);
assertEquals(details, actual.getAccessDetails());
assertEquals(address, actual.getAccessedFrom());
- assertEquals(token, actual.getAccessToken());
+ assertEquals(token, actual.getSessionToken());
assertEquals(account.getId(), actual.getAccountId());
assertNotNull(actual.getCreatedOn());
assertNotNull(actual.getLastAccessedOn());
//
- ResultSet<AccountAccess> result = storage.getAccountAccessByAccessToken(token);
- AccountAccess actualAccess = result.getExactlyOne();
+ ResultSet<AccountSession> result = storage.getAccountSessionBySessionToken(token);
+ AccountSession actualAccess = result.getExactlyOne();
assertEquals(actual, actualAccess);
- storage.deleteAccountAccessByAccessToken(token);
- assertEquals(true, storage.getAccountAccessByAccessToken(token).isEmpty());
+ storage.deleteAccountSessionBySessionToken(token);
+ assertEquals(true, storage.getAccountSessionBySessionToken(token).isEmpty());
}
private static void assertPrefs(AccountPreferences expected, String uuid, long accountId, Map<String, String> prefs) {

Back to the top