Code example for Supplier

Methods: get

0
      enqueueRegions("us-east-1", "eu-central-1"); 
 
      Map<String, Supplier<URI>> result = supplier(new Properties()).get();
 
      assertEquals(result.size(), 2);
      assertNotNull(result.get("us-east-1").get());
      assertNotNull(result.get("eu-central-1").get());
 
      assertPosted("us-east-1", "Action=DescribeRegions"); 
   } 
 
   public void honorsRegionWhitelist() throws Exception {
      enqueueRegions("us-east-1", "eu-central-1"); 
 
      Properties overrides = new Properties();
      overrides.setProperty(PROPERTY_REGIONS, "us-east-1");
 
      Map<String, Supplier<URI>> result = supplier(overrides).get();
 
      assertEquals(result.size(), 1);
Experience pair programming with AI  Get Codota for Java