@Test public void checksComDigiCertCertificatesPins() throws Exception { CertificatePinnerFactory certificatePinnerFactory = new CertificatePinnerFactory(); Map<String, List<String>> comCertificatesPins = certificatePinnerFactory .provideCertificatesPinsFor(Environment.COM); assertTrue(comCertificatesPins.containsKey("events.mapbox.com")); List<String> stagingPins = comCertificatesPins.get("events.mapbox.com"); assertTrue(stagingPins.contains("Tb0uHZ/KQjWh8N9+CZFLc4zx36LONQ55l6laDi1qtT4=")); assertTrue(stagingPins.contains("RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=")); assertTrue(stagingPins.contains("WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18=")); assertTrue(stagingPins.contains("yGp2XoimPmIK24X3bNV1IaK+HqvbGEgqar5nauDdC5E=")); }
Map<String, List<String>> provideCertificatesPinsFor(Environment environment) { return CERTIFICATES_PINS.get(environment); }
CertificatePinnerFactory { Map<String, List<String>> provideCertificatesPinsFor(Environment environment) { return CERTIFICATES_PINS.get(environment); } }
CertificatePinnerFactory { Map<String, List<String>> provideCertificatesPinsFor(Environment environment) { return CERTIFICATES_PINS.get(environment); }  }
CertificatePinnerFactory { Map<String, List<String>> provideCertificatesPinsFor(Environment environment) { return CERTIFICATES_PINS.get(environment); }   }
CertificatePinnerFactory { Map<String, List<String>> provideCertificatesPinsFor(Environment environment) { return CERTIFICATES_PINS.get(environment); }    }