protected void runTest(Map<String, ?> flags) throws Exception {
   String tag = getClass().getSimpleName().toLowerCase();
   Map<String, ?> allFlags =
       MutableMap.<String, Object>builder()
           .put("tags", ImmutableList.of(tag))
           .putAll(flags)
           .build();
   jcloudsLocation = ctx.getLocationRegistry().getLocationManaged(PROVIDER, allFlags);
   doTest(jcloudsLocation);
 }
Пример #2
0
 @Override
 public void reloaded() {
   Location resolved = context.getLocationRegistry().resolve(definition);
   context.getLocationRegistry().updateDefinedLocation(definition);
   context.getLocationManager().manage(resolved);
 }