Code example for SetMultimap

Methods: get

0
    expected.put("s4", "base");
    expected.put("s5", "s3");
    expected.put("s5", "s4");
    ServiceDependencyResolver resolver = new ServiceDependencyResolver(Actions.getInstance(), serviceMap);
    SetMultimap<String, String> actual = resolver.getRuntimeServiceDependencies();
    Assert.assertEquals(expected, actual);
    Assert.assertTrue(actual.get("base").isEmpty());
  } 
 
  @Test
  public void testMinimizeDependenciesWithProvides() { 
    Service base =  Service.builder().setName("base").build(); 
    Service s1 =  Service.builder().setName("s1").setDependencies(ServiceDependencies.runtimeRequires("base")).build(); 
    Service s2v1 = Service.builder() 
      .setName("s2-v1") 
      .setDependencies( 
        ServiceDependencies.builder() 
          .setProvides("s2") 
          .setRuntimeDependencies(new ServiceStageDependencies(ImmutableSet.<String>of("base", "s1"), null))
          .build()) 
Connect your IDE to all the code out there  Get Codota for Java