Skip to content

Commit 827c49e

Browse files
committed
CYBS-737: Modified unit test case
1 parent 5b99e94 commit 827c49e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/src/test/java/com/cybersource/ws/client/IdentityTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void testSetUpServerForP12Certs() throws SignException, IOException, Conf
4848
Mockito.when(x509Cert.getSubjectDN()).thenReturn(principal);
4949
Mockito.when(principal.getName()).thenReturn(keyAlias);
5050
Identity identity = new Identity(customConfig, x509Cert);
51-
assertEquals(identity.getName(), "CyberSource_SJC_US");
51+
assertEquals(identity.getName(), Utility.SERVER_ALIAS);
5252
assertEquals(identity.getSerialNumber(), "400000009910179089277");
5353
assertNull(identity.getPrivateKey());
5454
}
@@ -64,7 +64,7 @@ public void testSetUpServerForCaCerts() throws SignException, IOException, Confi
6464
Mockito.when(x509Cert.getSubjectDN()).thenReturn(principal);
6565
Mockito.when(principal.getName()).thenReturn(keyAlias);
6666
Identity identity = new Identity(customConfig, x509Cert);
67-
assertEquals(identity.getName(), "CyberSource_SJC_US");
67+
assertEquals(identity.getName(), Utility.SERVER_ALIAS);
6868
assertEquals(identity.getSerialNumber(), "400000009910179089277");
6969
assertNull(identity.getPrivateKey());
7070
}

0 commit comments

Comments
 (0)