Skip to content

LoganDev99/springcdc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Error even though BaseClass has configured

RestAssuredMockMvc.standaloneSetup(personRestController);

Generated test shows BaseClass is extended

public class ContractVerifierTest extends BaseClass {

Error: Run mvn clean install

[ERROR] validate_find_person_by_id  Time elapsed: 0.125 s  <<< ERROR!
java.lang.IllegalStateException:
You haven't configured a MockMVC instance. You can do this statically

RestAssuredMockMvc.mockMvc(..)
RestAssuredMockMvc.standaloneSetup(..);
RestAssuredMockMvc.webAppContextSetup(..);

or using the DSL:

given().
                mockMvc(..). ..

        at com.example.cdc.ContractVerifierTest.validate_find_person_by_id(ContractVerifierTest.java:27)

About

spring-cloud-contract-maven-plugin 3.0.0 error

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published