Skip to content

Commit 4c1f3c1

Browse files
Copilotgcatanese
andcommitted
Remove Region.IN enum value and related tests
Agent-Logs-Url: https://github.com/Adyen/adyen-java-api-library/sessions/4aa301be-a8b2-4ca3-843f-b2e851f7cbe4 Co-authored-by: gcatanese <1771700+gcatanese@users.noreply.github.com>
1 parent b402126 commit 4c1f3c1

3 files changed

Lines changed: 1 addition & 13 deletions

File tree

‎src/main/java/com/adyen/enums/Region.java‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ public enum Region {
1414
/** United States region */
1515
US,
1616

17-
/** India region */
18-
IN,
19-
2017
/** Asia-Pacific, South East region */
2118
APSE;
2219

‎src/test/java/com/adyen/RegionTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void testValidRegions() {
2020
.collect(Collectors.toList());
2121

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

2525
// Assert that the VALID_REGIONS in Region matches the expected list
2626
assertEquals(expected, actual);

‎src/test/java/com/adyen/httpclient/ClientTest.java‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,6 @@ public void testGetCloudEndpointForLiveEnvironment(
115115
assertEquals(expectedEndpoint, config.getTerminalApiCloudEndpoint());
116116
}
117117

118-
@Test
119-
public void testUnmappedIndiaRegionThrowsException() {
120-
Config config = new Config();
121-
config.setEnvironment(Environment.LIVE);
122-
config.setTerminalApiRegion(Region.IN);
123-
124-
Assertions.assertThrows(IllegalArgumentException.class, () -> new Client(config));
125-
}
126-
127118
@Test
128119
public void testClientCertificateAuth() {
129120
Client client = new Client(clientCertificateAuthSSLContext, "Your-X-API-KEY");

0 commit comments

Comments
 (0)