Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
private method removed from tests and updated properties
- Loading branch information
krgupta
committed
Sep 16, 2015
1 parent
22e7700
commit a6d8f82
Showing
7 changed files
with
86 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
src/test/java/net/authorize/api/controller/test/GetSettledBatchList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package net.authorize.api.controller.test; | ||
/*@author krgupta | ||
* | ||
*/ | ||
import org.junit.After; | ||
import org.junit.AfterClass; | ||
import org.junit.Before; | ||
import org.junit.BeforeClass; | ||
import org.junit.Test; | ||
import junit.framework.Assert; | ||
import net.authorize.api.contract.v1.GetSettledBatchListRequest; | ||
import net.authorize.api.contract.v1.GetSettledBatchListResponse; | ||
import net.authorize.api.contract.v1.MessageTypeEnum; | ||
import net.authorize.api.controller.GetSettledBatchListController; | ||
|
||
|
||
public class GetSettledBatchList extends ApiCoreTestBase{ | ||
@BeforeClass | ||
public static void setUpBeforeClass() throws Exception { | ||
ApiCoreTestBase.setUpBeforeClass(); | ||
} | ||
|
||
@AfterClass | ||
public static void tearDownAfterClass() throws Exception { | ||
ApiCoreTestBase.tearDownAfterClass(); | ||
} | ||
|
||
@Before | ||
public void setUp() throws Exception { | ||
super.setUp(); | ||
} | ||
|
||
@After | ||
public void tearDown() throws Exception { | ||
super.tearDown(); | ||
} | ||
|
||
@Test | ||
public void SettledBatchList() | ||
{ | ||
GetSettledBatchListRequest getRequest = new GetSettledBatchListRequest(); | ||
getRequest.setMerchantAuthentication(merchantAuthenticationType); | ||
GetSettledBatchListResponse getResponse = executeTestRequestWithSuccess(getRequest, GetSettledBatchListController.class, environment); | ||
MessageTypeEnum messagetypeenum = getResponse.getMessages().getResultCode(); | ||
|
||
Assert.assertEquals("Check the credentials ", MessageTypeEnum.OK,messagetypeenum); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters