Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/main/java/com/adyen/enums/Region.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ public enum Region {
/** United States region */
US,

/** India region */
IN,

/** Asia-Pacific, South East region */
APSE;

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/adyen/RegionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void testValidRegions() {
.collect(Collectors.toList());

// Define the expected list of valid regions
List<String> expected = List.of("eu", "au", "us", "in", "apse");
List<String> expected = List.of("eu", "au", "us", "apse");

// Assert that the VALID_REGIONS in Region matches the expected list
assertEquals(expected, actual);
Expand Down
9 changes: 0 additions & 9 deletions src/test/java/com/adyen/httpclient/ClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,6 @@ public void testGetCloudEndpointForLiveEnvironment(
assertEquals(expectedEndpoint, config.getTerminalApiCloudEndpoint());
}

@Test
public void testUnmappedIndiaRegionThrowsException() {
Config config = new Config();
config.setEnvironment(Environment.LIVE);
config.setTerminalApiRegion(Region.IN);

Assertions.assertThrows(IllegalArgumentException.class, () -> new Client(config));
}

@Test
public void testClientCertificateAuth() {
Client client = new Client(clientCertificateAuthSSLContext, "Your-X-API-KEY");
Expand Down
Loading