Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ``` [INFO] Scanning for projects...
- [INFO]
- [INFO] ----------------------< com.example:rest-service >----------------------
- [INFO] Building rest-service 0.0.1-SNAPSHOT
- [INFO] --------------------------------[ jar ]---------------------------------
- [INFO]
- [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ rest-service ---
- [INFO] Using 'UTF-8' encoding to copy filtered resources.
- [INFO] skip non existing resourceDirectory C:\Users\ghevi\OneDrive\Desktop\gs-rest-service-master\complete\src\main\resources
- [INFO] skip non existing resourceDirectory C:\Users\ghevi\OneDrive\Desktop\gs-rest-service-master\complete\src\main\resources
- [INFO]
- [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ rest-service ---
- [INFO] Nothing to compile - all classes are up to date
- [INFO]
- [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ rest-service ---
- [INFO] Using 'UTF-8' encoding to copy filtered resources.
- [INFO] skip non existing resourceDirectory C:\Users\ghevi\OneDrive\Desktop\gs-rest-service-master\complete\src\test\resources
- [INFO]
- [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ rest-service ---
- [INFO] Nothing to compile - all classes are up to date
- [INFO]
- [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ rest-service ---
- [INFO]
- [INFO] -------------------------------------------------------
- [INFO] T E S T S
- [INFO] -------------------------------------------------------
- [INFO] Running com.example.restservice.GreetingControllerTests
- 22:35:24.098 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
- 22:35:24.114 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)]
- 22:35:24.142 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.example.restservice.GreetingControllerTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
- 22:35:24.159 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.example.restservice.GreetingControllerTests], using SpringBootContextLoader
- 22:35:24.163 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.example.restservice.GreetingControllerTests]: class path resource [com/example/restservice/GreetingControllerTests-context.xml] does not exist
- 22:35:24.163 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.example.restservice.GreetingControllerTests]: class path resource [com/example/restservice/GreetingControllerTestsContext.groovy] does not exist
- 22:35:24.163 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.example.restservice.GreetingControllerTests]: no resource found for suffixes {-context.xml, Context.groovy}.
- 22:35:24.164 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.example.restservice.GreetingControllerTests]: GreetingControllerTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
- 22:35:24.211 [main] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [com.example.restservice.GreetingControllerTests]
- 22:35:24.278 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [C:\Users\ghevi\OneDrive\Desktop\gs-rest-service-master\complete\target\classes\com\example\restservice\RestServiceApplication.class]
- 22:35:24.279 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.example.restservice.RestServiceApplication for test class com.example.restservice.GreetingControllerTests
- 22:35:24.376 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.example.restservice.GreetingControllerTests]: using defaults.
- 22:35:24.376 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
- 22:35:24.387 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttributeSource]
- 22:35:24.388 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute]
- 22:35:24.388 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@140e5f0, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@1099dd3, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@13e344d, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@1ffaf86, org.springframework.test.context.support.DirtiesContextTestExecutionListener@174a52c, org.springframework.test.context.event.EventPublishingTestExecutionListener@1a5b54, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@7696c6, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@99951, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@140db9, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@6a3214, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@8247b9]
- 22:35:24.392 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@7f1f10 testClass = GreetingControllerTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@cdf8bd testClass = GreetingControllerTests, locations = '{}', classes = '{class com.example.restservice.RestServiceApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[[ImportsContextCustomizer@10c8a99 key = [org.springframework.boot.test.autoconfigure.web.servlet.MockMvcAutoConfiguration, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcWebClientAutoConfiguration, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcWebDriverAutoConfiguration, org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration, org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcSecurityConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@1fd97a8, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@1bf57b3, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@ebcd03, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@4b3fa0b3, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@1239d7d], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true]], class annotated with @DirtiesContext [false] with mode [null].
- 22:35:24.418 [main] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true, server.port=-1}
- :: Spring Boot :: (v2.2.2.RELEASE)
- 2020-02-12 22:35:24.635 INFO 7972 --- [ main] c.e.restservice.GreetingControllerTests : Starting GreetingControllerTests on DESKTOP-OKM2KO5 with PID 7972 (started by ghevi in C:\Users\ghevi\OneDrive\Desktop\gs-rest-service-master\complete)
- 2020-02-12 22:35:24.636 INFO 7972 --- [ main] c.e.restservice.GreetingControllerTests : No active profile set, falling back to default profiles: default
- 2020-02-12 22:35:25.659 INFO 7972 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
- 2020-02-12 22:35:25.904 INFO 7972 --- [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
- 2020-02-12 22:35:25.904 INFO 7972 --- [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet ''
- 2020-02-12 22:35:25.914 INFO 7972 --- [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 9 ms
- 2020-02-12 22:35:25.930 INFO 7972 --- [ main] c.e.restservice.GreetingControllerTests : Started GreetingControllerTests in 1.502 seconds (JVM running for 2.298)
- MockHttpServletRequest:
- HTTP Method = GET
- Request URI = /greeting
- Parameters = {}
- Headers = []
- Body = null
- Session Attrs = {}
- Handler:
- Type = com.example.restservice.GreetingController
- Method = com.example.restservice.GreetingController#greeting(String)
- Async:
- Async started = false
- Async result = null
- Resolved Exception:
- Type = null
- ModelAndView:
- View name = null
- View = null
- Model = null
- FlashMap:
- Attributes = null
- MockHttpServletResponse:
- Status = 200
- Error message = null
- Headers = [Content-Type:"application/json"]
- Content type = application/json
- Body = {"id":1,"content":"Hello, World!"}
- Forwarded URL = null
- Redirected URL = null
- Cookies = []
- MockHttpServletRequest:
- HTTP Method = GET
- Request URI = /greeting
- Parameters = {name=[Spring Community]}
- Headers = []
- Body = null
- Session Attrs = {}
- Handler:
- Type = com.example.restservice.GreetingController
- Method = com.example.restservice.GreetingController#greeting(String)
- Async:
- Async started = false
- Async result = null
- Resolved Exception:
- Type = null
- ModelAndView:
- View name = null
- View = null
- Model = null
- FlashMap:
- Attributes = null
- MockHttpServletResponse:
- Status = 200
- Error message = null
- Headers = [Content-Type:"application/json"]
- Content type = application/json
- Body = {"id":2,"content":"Hello, Spring Community!"}
- Forwarded URL = null
- Redirected URL = null
- Cookies = []
- [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.212 s - in com.example.restservice.GreetingControllerTests
- 2020-02-12 22:35:26.286 INFO 7972 --- [extShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
- [INFO]
- [INFO] Results:
- [INFO]
- [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
- [INFO]
- [INFO]
- [INFO] --- maven-jar-plugin:3.1.2:jar (default-jar) @ rest-service ---
- [INFO] Building jar: C:\Users\ghevi\OneDrive\Desktop\gs-rest-service-master\complete\target\rest-service-0.0.1-SNAPSHOT.jar
- [INFO]
- [INFO] --- spring-boot-maven-plugin:2.2.2.RELEASE:repackage (repackage) @ rest-service ---
- [INFO] Replacing main artifact with repackaged archive
- [INFO]
- [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ rest-service ---
- [INFO] Installing C:\Users\ghevi\OneDrive\Desktop\gs-rest-service-master\complete\target\rest-service-0.0.1-SNAPSHOT.jar to C:\Users\ghevi\.m2\repository\com\example\rest-service\0.0.1-SNAPSHOT\rest-service-0.0.1-SNAPSHOT.jar
- [INFO] Installing C:\Users\ghevi\OneDrive\Desktop\gs-rest-service-master\complete\pom.xml to C:\Users\ghevi\.m2\repository\com\example\rest-service\0.0.1-SNAPSHOT\rest-service-0.0.1-SNAPSHOT.pom
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD SUCCESS
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 5.447 s
- [INFO] Finished at: 2020-02-12T22:35:27+01:00
- [INFO] ------------------------------------------------------------------------ ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement