Offending class: 00:26:33.164 INFO .context.SpringBootTestContextBootstrapper - Using TestExecutionListeners:. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: 00:26:33.162 DEBUG .context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener due to a missing dependency. 00:26:33.087 INFO .context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location : 00:26:33.158 DEBUG .context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener due to a missing dependency. 00:26:32.763 INFO .support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class : MyWebAppTest does not declare any static, non-private, non-final, nested classes annotated with 00:26:32.823 DEBUG .support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type and class 00:26:32.921 DEBUG .ClassPathScanningCandidateComponentProvider - Identified candidate component class: file 00:26:32.924 INFO .context.SpringBootTestContextBootstrapper - Found for test class 00:26:33.086 DEBUG .context.SpringBootTestContextBootstrapper - is not present for class : using defaults. Import class MyMvcController HelloService = String sayHi(String name). Since you are loading configuration class MyApplication.class datasource bean will be created, Try moving datasource in another bean which is not used in a test, make sure all classes loaded for tests are not dependant on datasource. WebTestClient is similar to WebClient but after exchange() call further chined methods are used to verify responses. We can use an embedded web server to test our web application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |