@Test public void deconflictingStrategyPassesThroughToDelegate() { Model model = Model.builder().build(); PropertyNamingStrategy propertyNamingStrategy = PropertyNamingStrategy.createDefaultStrategy(); RefStrategy strategy = RefStrategy .createDefaultStrategy(model, new JsonSchemaConfig(), propertyNamingStrategy); assertThat(strategy.toPointer(ShapeId.from("com.foo#Nope")), equalTo("#/definitions/Nope")); }
@Override public String toPointer(ShapeId id) { return pointers.computeIfAbsent(id, delegate::toPointer); }
DeconflictingStrategy implements RefStrategy { @Override public String toPointer(ShapeId id) { return pointers.computeIfAbsent(id, delegate::toPointer); } }
DeconflictingStrategy implements RefStrategy { @Override public String toPointer(ShapeId id) { return pointers.computeIfAbsent(id, delegate::toPointer); } DeconflictingStrategy(Model model, RefStrategy delegate); }
DeconflictingStrategy implements RefStrategy { @Override public String toPointer(ShapeId id) { return pointers.computeIfAbsent(id, delegate::toPointer); } DeconflictingStrategy(Model model, RefStrategy delegate); @Override String toPointer(ShapeId id); @Override boolean isInlined(Shape shape); }
DeconflictingStrategy implements RefStrategy { @Override public String toPointer(ShapeId id) { return pointers.computeIfAbsent(id, delegate::toPointer); } DeconflictingStrategy(Model model, RefStrategy delegate); @Override String toPointer(ShapeId id); @Override boolean isInlined(Shape shape);  }