From 5b851e4357bfb92b4f170a8e335d3d7dea8feec5 Mon Sep 17 00:00:00 2001 From: Silvano Cerza Date: Tue, 24 Mar 2026 19:27:20 +0100 Subject: [PATCH 1/2] Update Bulgaria currency from BGN to EUR --- src/main/java/io/ipinfo/api/context/Context.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/ipinfo/api/context/Context.java b/src/main/java/io/ipinfo/api/context/Context.java index e16693f..161b3d3 100644 --- a/src/main/java/io/ipinfo/api/context/Context.java +++ b/src/main/java/io/ipinfo/api/context/Context.java @@ -566,7 +566,7 @@ public class Context { tempCountriesCurrencies.put("BD", new CountryCurrency("BDT", "৳")); tempCountriesCurrencies.put("BE", new CountryCurrency("EUR", "€")); tempCountriesCurrencies.put("BF", new CountryCurrency("XOF", "CFA")); - tempCountriesCurrencies.put("BG", new CountryCurrency("BGN", "лв")); + tempCountriesCurrencies.put("BG", new CountryCurrency("EUR", "€")); tempCountriesCurrencies.put("BH", new CountryCurrency("BHD", ".د.ب")); tempCountriesCurrencies.put("BI", new CountryCurrency("BIF", "FBu")); tempCountriesCurrencies.put("BJ", new CountryCurrency("XOF", "CFA")); From a51afa8c9308a31fdc5836b8876bc1d84794c1b7 Mon Sep 17 00:00:00 2001 From: Silvano Cerza Date: Wed, 25 Mar 2026 16:09:14 +0100 Subject: [PATCH 2/2] Fix tests failing cause of data change --- src/test/java/io/ipinfo/IPinfoTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/io/ipinfo/IPinfoTest.java b/src/test/java/io/ipinfo/IPinfoTest.java index ac3cbd2..7435c73 100644 --- a/src/test/java/io/ipinfo/IPinfoTest.java +++ b/src/test/java/io/ipinfo/IPinfoTest.java @@ -173,11 +173,11 @@ public void testGetBatchIps() { () -> assertNotNull(res1.getCountryName(), "country name should be set"), () -> assertNotNull(res1.getTimezone(), "timezone should be set"), () -> assertFalse(res1.getPrivacy().getProxy(), "proxy mismatch"), - () -> assertFalse(res1.getPrivacy().getVpn(), "VPN mismatch"), + () -> assertTrue(res1.getPrivacy().getVpn(), "VPN mismatch"), () -> assertFalse(res1.getPrivacy().getTor(), "Tor mismatch"), () -> assertFalse(res1.getPrivacy().getRelay(), "relay mismatch"), () -> assertTrue(res1.getPrivacy().getHosting(), "hosting mismatch"), - () -> assertEquals("", res1.getPrivacy().getService(), "service mismatch"), + () -> assertEquals("AngelVPN", res1.getPrivacy().getService(), "service mismatch"), () -> assertEquals(5, res1.getDomains().getDomains().size(), "domains size mismatch") );