summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGUNDAPANENI <bg5457@att.com>2017-10-03 13:55:11 -0500
committerGUNDAPANENI <bg5457@att.com>2017-10-03 13:55:30 -0500
commit6b0e406ef56e7cd4edb4f0043bc7fc75d4c6c266 (patch)
treeb2cfe572b830353a9dac8d562b4ef5131d05dfb7
parent16c62358a4ba3b8760a7384c5bd48557824015e9 (diff)
add unit tests cases for autz
add unit testscases for autz Issue-Id: AAF-81 Change-Id: If2be1b0401efcae7fdaa1dccdcee8c5d946511d0 Signed-off-by: GUNDAPANENI <bg5457@att.com>
-rw-r--r--authz-defOrg/src/test/java/org/onap/aaf/osaaf/defOrg/JU_DefaultOrg.java2
-rw-r--r--pom.xml4
2 files changed, 3 insertions, 3 deletions
diff --git a/authz-defOrg/src/test/java/org/onap/aaf/osaaf/defOrg/JU_DefaultOrg.java b/authz-defOrg/src/test/java/org/onap/aaf/osaaf/defOrg/JU_DefaultOrg.java
index ba0ad6b6..43a593c6 100644
--- a/authz-defOrg/src/test/java/org/onap/aaf/osaaf/defOrg/JU_DefaultOrg.java
+++ b/authz-defOrg/src/test/java/org/onap/aaf/osaaf/defOrg/JU_DefaultOrg.java
@@ -66,7 +66,7 @@ public void setUp() throws OrganizationException{
MockitoAnnotations.initMocks(this);
PowerMockito.when(authzEnvMock.getProperty(s=(REALM + ".mailHost"), null)).thenReturn("hello");
PowerMockito.when(authzEnvMock.getProperty(s=(REALM + ".supportEmail"), null)).thenReturn("notnull");
- PowerMockito.when(authzEnvMock.getProperty(Matchers.anyString())).thenReturn("src\\test\\resources\\test.txt");
+ PowerMockito.when(authzEnvMock.getProperty(Matchers.anyString())).thenReturn("src" + File.separator + "test" + File.separator + "resources" + File.separator + "test.txt");
PowerMockito.when(fIdentitiesMock.exists()).thenReturn(true);
//PowerMockito.when((fIdentitiesMock!=null && fIdentitiesMock.exists())).thenReturn(true);
defaultOrg = new DefaultOrg(authzEnvMock);
diff --git a/pom.xml b/pom.xml
index b10f854e..2dfe9756 100644
--- a/pom.xml
+++ b/pom.xml
@@ -123,8 +123,8 @@
<exclude>**/JU_Identities.java</exclude>
<exclude>**/JU_AuthzTransFilter.java</exclude>
<exclude>**/JU_CachingFileAccess.java</exclude>
- <!-- <exclude>**/AbsServiceTest.java</exclude> -->
- <exclude>**/JU_DefaultOrg.java</exclude>
+ <!-- <exclude>**/AbsServiceTest.java</exclude> -->
+ <!-- <exclude>**/JU_DefaultOrg.java</exclude> -->
<exclude>**/JU_FileServer.java</exclude>
<exclude>**/JU_DirectAAFLur.java</exclude>
<exclude>**/JU_AuthAPI.java</exclude>