Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Escobar2014-03-25 16:11:37 -0400
committerRyan D. Brooks2014-03-25 16:11:37 -0400
commit2abb1fe659ed64a6456af01b04c97f457ab87709 (patch)
treead5a438f12531f0258892740fabb917a9de971fe /plugins/org.eclipse.osee.orcs.account.admin.test
parent045c0f2cf983ffc9d0521cd2b58565afda14c921 (diff)
downloadorg.eclipse.osee-2abb1fe659ed64a6456af01b04c97f457ab87709.tar.gz
org.eclipse.osee-2abb1fe659ed64a6456af01b04c97f457ab87709.tar.xz
org.eclipse.osee-2abb1fe659ed64a6456af01b04c97f457ab87709.zip
refinement: Account access details default to N/A when null
Allow creation of account access even if remote address and access details is null. These values should be marked as N/A when null. Change-Id: Ib8d06c6138dbdfcdfc4bd357c0f46ac454dc1d57
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.java8
1 files changed, 1 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 d9916db2c8..d1761caebc 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
@@ -18,7 +18,6 @@ import static org.mockito.Mockito.when;
import static org.mockito.MockitoAnnotations.initMocks;
import java.util.HashMap;
import java.util.Map;
-import org.eclipse.osee.account.admin.AccessDetails;
import org.eclipse.osee.account.admin.Account;
import org.eclipse.osee.account.admin.AccountAccess;
import org.eclipse.osee.account.admin.AccountAdmin;
@@ -38,7 +37,6 @@ import org.junit.rules.ExpectedException;
import org.junit.rules.TestName;
import org.junit.rules.TestRule;
import org.mockito.Mock;
-import org.mockito.Mockito;
/**
* Test Case for {@link AccountAdmin} using {@link OrcsAccountStorageImpl}
@@ -208,13 +206,9 @@ public class OrcsAccountStorageImplTest {
String address = "myAddress";
String details = "myDetails";
- AccessDetails accessDetails = Mockito.mock(AccessDetails.class);
- when(accessDetails.getAccessDetails()).thenReturn(details);
- when(accessDetails.getRemoteAddress()).thenReturn(address);
-
Account account = storage.getAccountByUuid(newAccount.getGuid()).getExactlyOne();
- AccountAccess actual = storage.createAccountAccess(token, account, accessDetails);
+ AccountAccess actual = storage.createAccountAccess(token, account, address, details);
assertEquals(details, actual.getAccessDetails());
assertEquals(address, actual.getAccessedFrom());
assertEquals(token, actual.getAccessToken());

Back to the top