Skip to content

Commit a30f03d

Browse files
committed
changed the code after code review
1 parent fc4d297 commit a30f03d

1 file changed

Lines changed: 2 additions & 21 deletions

File tree

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

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public void testSoapWrapAndSign() throws Exception {
120120

121121
@Test
122122
public void testSoapWrapSignedAndEncrypt() throws Exception {
123-
Thread.sleep(30000);
123+
Thread.sleep(40000);
124124

125125
Document signedDoc = SecurityUtil.createSignedDoc(wrappedDoc,config.getMerchantID(),config.getKeyPassword(),logger);
126126
NodeList signatureElement = signedDoc.getElementsByTagName("wsse:Security");
@@ -181,28 +181,9 @@ private static PrivateKey instPrivateKey(PrivateKey pkey) throws Exception{
181181
return privateKey;
182182
}
183183

184-
@Test
185-
public void testLoadMerchantP12File() throws Exception{
186184

187185

188-
Identity identity = Mockito.mock(Identity.class);
189-
//MerchantConfig config=Mockito.mock(MerchantConfig.class);
190-
File keyFile=config.getKeyFile();
191-
boolean value=(config.getMerchantID() == null || !(identity.isValid(keyFile)));
192-
assert(value==true);
193-
if (value == true) {
194-
195-
logger.log(Logger.LT_INFO, "Condition valid");
196-
197-
} else {
198-
199-
logger.log(Logger.LT_INFO, "Condition false");
200-
}
201-
202-
}
203-
204-
205-
}
186+
}
206187

207188

208189

0 commit comments

Comments
 (0)