@Test public void testDefault() { Swagger2MarkupConverter.SwaggerContext context = createContext(); assertThat(new DefinitionDocumentResolverDefault(context).apply("DefinitionName")).isNull(); }
public String apply(String definitionName) { if (!config.isInterDocumentCrossReferencesEnabled() || context.getOutputPath() == null) return null; else return defaultString(config.getInterDocumentCrossReferencesPrefix()) + definitionDocumentNameResolver.apply(definitionName); }
DefinitionDocumentResolverDefault extends DocumentResolver { public String apply(String definitionName) { if (!config.isInterDocumentCrossReferencesEnabled() || context.getOutputPath() == null) return null; else return defaultString(config.getInterDocumentCrossReferencesPrefix()) + definitionDocumentNameResolver.apply(definitionName); } }
DefinitionDocumentResolverDefault extends DocumentResolver { public String apply(String definitionName) { if (!config.isInterDocumentCrossReferencesEnabled() || context.getOutputPath() == null) return null; else return defaultString(config.getInterDocumentCrossReferencesPrefix()) + definitionDocumentNameResolver.apply(definitionName); } DefinitionDocumentResolverDefault(Swagger2MarkupConverter.SwaggerContext context); }
DefinitionDocumentResolverDefault extends DocumentResolver { public String apply(String definitionName) { if (!config.isInterDocumentCrossReferencesEnabled() || context.getOutputPath() == null) return null; else return defaultString(config.getInterDocumentCrossReferencesPrefix()) + definitionDocumentNameResolver.apply(definitionName); } DefinitionDocumentResolverDefault(Swagger2MarkupConverter.SwaggerContext context); String apply(String definitionName); }
DefinitionDocumentResolverDefault extends DocumentResolver { public String apply(String definitionName) { if (!config.isInterDocumentCrossReferencesEnabled() || context.getOutputPath() == null) return null; else return defaultString(config.getInterDocumentCrossReferencesPrefix()) + definitionDocumentNameResolver.apply(definitionName); } DefinitionDocumentResolverDefault(Swagger2MarkupConverter.SwaggerContext context); String apply(String definitionName);  }