Skip to content

Commit

Permalink
Perf Mode Implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
javidlulu committed Apr 7, 2021
1 parent d7fd02d commit 6fb81b6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/test/java/jp/ne/paypay/api/ApiClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@ public void configTest() throws ApiException{

}

@Test
public void parameterToStringTest(){
List<String> params = new ArrayList<>();
params.add("Id");
params.add("Name");
String parameterToString = apiClient.parameterToString(params);
Assert.assertEquals(parameterToString, "Id,Name");
Date date = new GregorianCalendar(2020, Calendar.FEBRUARY, 5).getTime();
parameterToString = apiClient.parameterToString(date);
Assert.assertTrue(parameterToString.startsWith("2020-"));
}

@Test
public void perfModeTest(){
apiClient.setPerfMode(true);
Expand Down

0 comments on commit 6fb81b6

Please sign in to comment.