@Test public void testWithSeparatedOperations() { Swagger2MarkupConfig config = new Swagger2MarkupConfigBuilder() .withSeparatedOperations() .build(); Swagger2MarkupConverter.SwaggerContext context = createContext(config); assertThat(new OperationDocumentResolverDefault(context).apply(operation)).isNull(); }
public String apply(PathOperation operation) { if (!config.isInterDocumentCrossReferencesEnabled() || context.getOutputPath() == null) return null; else return defaultString(config.getInterDocumentCrossReferencesPrefix()) + operationDocumentNameResolver.apply(operation); }
OperationDocumentResolverDefault extends OperationDocumentResolver { public String apply(PathOperation operation) { if (!config.isInterDocumentCrossReferencesEnabled() || context.getOutputPath() == null) return null; else return defaultString(config.getInterDocumentCrossReferencesPrefix()) + operationDocumentNameResolver.apply(operation); } }
OperationDocumentResolverDefault extends OperationDocumentResolver { public String apply(PathOperation operation) { if (!config.isInterDocumentCrossReferencesEnabled() || context.getOutputPath() == null) return null; else return defaultString(config.getInterDocumentCrossReferencesPrefix()) + operationDocumentNameResolver.apply(operation); } OperationDocumentResolverDefault(Swagger2MarkupConverter.SwaggerContext context); }
OperationDocumentResolverDefault extends OperationDocumentResolver { public String apply(PathOperation operation) { if (!config.isInterDocumentCrossReferencesEnabled() || context.getOutputPath() == null) return null; else return defaultString(config.getInterDocumentCrossReferencesPrefix()) + operationDocumentNameResolver.apply(operation); } OperationDocumentResolverDefault(Swagger2MarkupConverter.SwaggerContext context); String apply(PathOperation operation); }
OperationDocumentResolverDefault extends OperationDocumentResolver { public String apply(PathOperation operation) { if (!config.isInterDocumentCrossReferencesEnabled() || context.getOutputPath() == null) return null; else return defaultString(config.getInterDocumentCrossReferencesPrefix()) + operationDocumentNameResolver.apply(operation); } OperationDocumentResolverDefault(Swagger2MarkupConverter.SwaggerContext context); String apply(PathOperation operation);  }