@Test public void resolve() throws Exception { SimpleBoundNameResolver bnr = new SimpleBoundNameResolver( new SimpleBoundNameResolver.Names(Any2.right("foo")), new ConstResolver( new ResolverTuple(newTupleElement("one")), new ResolverTuple(newTupleElement("two")))); assertThat(bnr.resolve().map(NamedResolverMap::getRawMap).collect(Collectors.toList()), Matchers.containsInAnyOrder( singletonMap(Any2.right("foo"), Any3.create3("one")), singletonMap(Any2.right("foo"), Any3.create3("two")))); assertEquals("foo = " + bnr.getResolver().configString(), bnr.configString()); }
@Override public Stream<NamedResolverMap> resolve() throws Exception { return resolver.getTuples().stream() .map(this::bindNames); }
SimpleBoundNameResolver implements NameBoundResolver { @Override public Stream<NamedResolverMap> resolve() throws Exception { return resolver.getTuples().stream() .map(this::bindNames); } }
SimpleBoundNameResolver implements NameBoundResolver { @Override public Stream<NamedResolverMap> resolve() throws Exception { return resolver.getTuples().stream() .map(this::bindNames); } SimpleBoundNameResolver(@NonNull Names names, @NonNull Resolver resolver); }
SimpleBoundNameResolver implements NameBoundResolver { @Override public Stream<NamedResolverMap> resolve() throws Exception { return resolver.getTuples().stream() .map(this::bindNames); } SimpleBoundNameResolver(@NonNull Names names, @NonNull Resolver resolver); @Override Stream<NamedResolverMap> resolve(); @Override Stream<Any2<Integer, String>> getKeys(); @Override String configString(); @Override boolean isEmpty(); @Override void close(); }
SimpleBoundNameResolver implements NameBoundResolver { @Override public Stream<NamedResolverMap> resolve() throws Exception { return resolver.getTuples().stream() .map(this::bindNames); } SimpleBoundNameResolver(@NonNull Names names, @NonNull Resolver resolver); @Override Stream<NamedResolverMap> resolve(); @Override Stream<Any2<Integer, String>> getKeys(); @Override String configString(); @Override boolean isEmpty(); @Override void close();  }