Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- apply(Project) - Method in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorPlugin
C
- com.arc_e_tect.gradle.doppelganger - package com.arc_e_tect.gradle.doppelganger
- com.arc_e_tect.gradle.doppelganger.detect - package com.arc_e_tect.gradle.doppelganger.detect
- com.arc_e_tect.gradle.doppelganger.report - package com.arc_e_tect.gradle.doppelganger.report
- com.arc_e_tect.gradle.doppelganger.scan - package com.arc_e_tect.gradle.doppelganger.scan
- ContractVerificationSource - Interface in com.arc_e_tect.gradle.doppelganger.detect
-
A pluggable source of "this endpoint's contract is verified" evidence.
D
- DEFAULT_CONTRACTS_DIR - Static variable in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
Default relative path of the directory searched for Spring Cloud Contract DSL files.
- DEFAULT_CONTROLLER_DIR - Static variable in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
Default relative path of the directory searched for
@RestControllerclasses. - DEFAULT_REPORT_FILE_NAME - Static variable in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
Default name of the generated AsciiDoc report file.
- DEFAULT_TEST_DIR - Static variable in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
Default relative path of the directory searched for test classes.
- Defaults - Search tag in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorPlugin
- Section
- DetectDoppelgangerApisTask - Class in com.arc_e_tect.gradle.doppelganger
-
Gradle task that compares endpoints both declared in the configured OpenAPI documentation and implemented by scanned
@RestControllerclasses against verification evidence collected from the enabledContractVerificationSources, and writes an AsciiDoc report of every endpoint with no such evidence - the "doppelganger APIs". - DetectDoppelgangerApisTask() - Constructor for class com.arc_e_tect.gradle.doppelganger.DetectDoppelgangerApisTask
-
Creates the task.
- DoppelgangerApiDetectorExtension - Class in com.arc_e_tect.gradle.doppelganger
-
DSL extension for the Doppelganger API Detector Gradle plugin.
- DoppelgangerApiDetectorExtension() - Constructor for class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
For use by the Gradle-generated concrete subclass.
- DoppelgangerApiDetectorPlugin - Class in com.arc_e_tect.gradle.doppelganger
-
Gradle plugin that registers the
detectDoppelgangerApistask and wires thedoppelgangerApiDetectorDSL extension into the project. - DoppelgangerApiDetectorPlugin() - Constructor for class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorPlugin
-
Creates a new plugin instance.
- DoppelgangerApiFinder - Class in com.arc_e_tect.gradle.doppelganger.detect
-
Determines which endpoints are both declared in the OpenAPI documentation and implemented by a
@RestControllermethod, but have no matching verification evidence from any configuredContractVerificationSource- i.e. - DoppelgangerApiFinder() - Constructor for class com.arc_e_tect.gradle.doppelganger.detect.DoppelgangerApiFinder
-
Creates a new
DoppelgangerApiFinder. - DoppelgangerApiReportWriter - Class in com.arc_e_tect.gradle.doppelganger.report
-
Writes the AsciiDoc doppelganger API report: every endpoint that is declared in the OpenAPI documentation and implemented by a
@RestControllermethod, but has no verification evidence from any enabledContractVerificationSource. - DoppelgangerApiReportWriter() - Constructor for class com.arc_e_tect.gradle.doppelganger.report.DoppelgangerApiReportWriter
-
Creates a new
DoppelgangerApiReportWriter.
F
- findDoppelgangers(List<Endpoint>, List<Endpoint>) - Method in class com.arc_e_tect.gradle.doppelganger.detect.DoppelgangerApiFinder
-
Returns every endpoint in
declaredAndImplementedthat has no matching entry inverified.
G
- generate() - Method in class com.arc_e_tect.gradle.doppelganger.DetectDoppelgangerApisTask
-
Task action: scans the configured controller directories and OpenAPI documentation to find endpoints both declared and implemented, scans the enabled verification sources, writes the doppelganger API report, and - when
DetectDoppelgangerApisTask.getFailOnDoppelganger()istrue- fails the build if any doppelganger API was found. - getContractsDir() - Method in class com.arc_e_tect.gradle.doppelganger.DetectDoppelgangerApisTask
-
Directory searched for Spring Cloud Contract DSL files when
DetectDoppelgangerApisTask.getUseSpringCloudContract()istrue. - getContractsDir() - Method in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
Directory searched for Spring Cloud Contract DSL files (
*.groovyand*.yml), scanned recursively whenDoppelgangerApiDetectorExtension.getUseSpringCloudContract()istrue. - getControllerDirs() - Method in class com.arc_e_tect.gradle.doppelganger.DetectDoppelgangerApisTask
-
Directories to search recursively for
@RestControllerclasses. - getControllerDirs() - Method in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
Directories to search recursively for
@RestControllerclasses. - getFailOnDoppelganger() - Method in class com.arc_e_tect.gradle.doppelganger.DetectDoppelgangerApisTask
-
Whether the build should fail when doppelganger APIs are found.
- getFailOnDoppelganger() - Method in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
Whether the build should fail when doppelganger APIs are found.
- getOpenApiDir() - Method in class com.arc_e_tect.gradle.doppelganger.DetectDoppelgangerApisTask
-
Directory where OpenAPI descriptions are stored, tracked so that changes to any document reachable from
DetectDoppelgangerApisTask.getRootDocument()invalidate the task's cached result. - getOpenApiDir() - Method in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
Directory where OpenAPI descriptions are stored.
- getReportDir() - Method in class com.arc_e_tect.gradle.doppelganger.DetectDoppelgangerApisTask
-
Directory the AsciiDoc report is written to.
- getReportDir() - Method in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
Directory the AsciiDoc report is written to.
- getReportFileName() - Method in class com.arc_e_tect.gradle.doppelganger.DetectDoppelgangerApisTask
-
Name of the generated AsciiDoc report file (without path).
- getReportFileName() - Method in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
Name of the generated AsciiDoc report file (without path).
- getRootDocument() - Method in class com.arc_e_tect.gradle.doppelganger.DetectDoppelgangerApisTask
-
The root OpenAPI document describing the API.
- getRootDocument() - Method in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
The root OpenAPI document describing the API.
- getSystemUnderTestVersion() - Method in class com.arc_e_tect.gradle.doppelganger.DetectDoppelgangerApisTask
-
Version of the system under test whose
@RestControllerclasses were scanned, printed in the generated report as e.g. - getSystemUnderTestVersion() - Method in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
Version of the system under test whose
@RestControllerclasses are scanned, printed in the generated report as e.g. - getTestDirs() - Method in class com.arc_e_tect.gradle.doppelganger.DetectDoppelgangerApisTask
-
Directories to search recursively for test classes, scanned by the Spring RestDocs and OpenAPI request validator verification sources when enabled.
- getTestDirs() - Method in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
Directories to search recursively for test classes, scanned by the Spring RestDocs and OpenAPI request validator verification sources when enabled.
- getUseOpenApiRequestValidator() - Method in class com.arc_e_tect.gradle.doppelganger.DetectDoppelgangerApisTask
-
Whether to treat Atlassian OpenAPI request validator usage as verification evidence.
- getUseOpenApiRequestValidator() - Method in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
Whether to treat Atlassian OpenAPI request validator usage as verification evidence.
- getUseRestDocs() - Method in class com.arc_e_tect.gradle.doppelganger.DetectDoppelgangerApisTask
-
Whether to treat Spring RestDocs test methods as verification evidence.
- getUseRestDocs() - Method in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
Whether to treat Spring RestDocs test methods (a
mockMvc.perform(...)call paired with.andDo(document(...))) as verification evidence. - getUseSpringCloudContract() - Method in class com.arc_e_tect.gradle.doppelganger.DetectDoppelgangerApisTask
-
Whether to treat Spring Cloud Contract DSL files as verification evidence.
- getUseSpringCloudContract() - Method in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
Whether to treat Spring Cloud Contract DSL files under
DoppelgangerApiDetectorExtension.getContractsDir()as verification evidence.
N
- NAME - Static variable in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorExtension
-
Extension DSL block name, i.e.
O
- OpenApiRequestValidatorScanner - Class in com.arc_e_tect.gradle.doppelganger.scan
-
ContractVerificationSourcefor the Atlassian OpenAPI request validator: a test method whose call chain contains either.filter(new OpenApiValidationFilter(...))(REST Assured style) or a direct.validateRequest(...)/.validateResponse(...)call, paired with a REST-Assured-style request built viagiven()...when()...get(...)calls in the same method. - OpenApiRequestValidatorScanner() - Constructor for class com.arc_e_tect.gradle.doppelganger.scan.OpenApiRequestValidatorScanner
-
Creates a new
OpenApiRequestValidatorScanner.
R
- RestDocsScanner - Class in com.arc_e_tect.gradle.doppelganger.scan
-
ContractVerificationSourcefor Spring RestDocs: a test method whose call chain contains amockMvc.perform(get(...)/post(...)/put(...)/delete(...)/patch(...))call and also includes.andDo(document(...))somewhere in the same method body. - RestDocsScanner() - Constructor for class com.arc_e_tect.gradle.doppelganger.scan.RestDocsScanner
-
Creates a new
RestDocsScanner.
S
- scan(File) - Method in interface com.arc_e_tect.gradle.doppelganger.detect.ContractVerificationSource
-
Scans
rootDirrecursively and returns every endpoint this source found verification evidence for. - scan(File) - Method in class com.arc_e_tect.gradle.doppelganger.scan.OpenApiRequestValidatorScanner
-
Scans
rootDirrecursively and returns every endpoint this source found verification evidence for. - scan(File) - Method in class com.arc_e_tect.gradle.doppelganger.scan.RestDocsScanner
-
Scans
rootDirrecursively and returns every endpoint this source found verification evidence for. - scan(File) - Method in class com.arc_e_tect.gradle.doppelganger.scan.SpringCloudContractScanner
-
Scans
rootDirrecursively and returns every endpoint this source found verification evidence for. - SpringCloudContractScanner - Class in com.arc_e_tect.gradle.doppelganger.scan
-
ContractVerificationSourcefor Spring Cloud Contract: declarative contract DSL files undersrc/test/resources/contracts/**/*.groovy(and.yml), read structurally formethod '...'andurl '...'/urlPath '...'entries. - SpringCloudContractScanner() - Constructor for class com.arc_e_tect.gradle.doppelganger.scan.SpringCloudContractScanner
-
Creates a new
SpringCloudContractScanner.
T
- TASK_NAME - Static variable in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorPlugin
-
Name of the Gradle task registered by this plugin.
U
- Usage - Search tag in class com.arc_e_tect.gradle.doppelganger.DoppelgangerApiDetectorPlugin
- Section
W
- write(File, int, List<Endpoint>, String) - Method in class com.arc_e_tect.gradle.doppelganger.report.DoppelgangerApiReportWriter
-
Writes the report to
outputFile, creating its parent directory if necessary.
All Classes and Interfaces|All Packages|Constant Field Values