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