Advertisement
Guest User

Untitled

a guest
Feb 12th, 2020
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.78 KB | None | 0 0
  1. ``` [INFO] Scanning for projects...
  2. [INFO]
  3. [INFO] ----------------------< com.example:rest-service >----------------------
  4. [INFO] Building rest-service 0.0.1-SNAPSHOT
  5. [INFO] --------------------------------[ jar ]---------------------------------
  6. [INFO]
  7. [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ rest-service ---
  8. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  9. [INFO] skip non existing resourceDirectory C:\Users\ghevi\OneDrive\Desktop\gs-rest-service-master\complete\src\main\resources
  10. [INFO] skip non existing resourceDirectory C:\Users\ghevi\OneDrive\Desktop\gs-rest-service-master\complete\src\main\resources
  11. [INFO]
  12. [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ rest-service ---
  13. [INFO] Nothing to compile - all classes are up to date
  14. [INFO]
  15. [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ rest-service ---
  16. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  17. [INFO] skip non existing resourceDirectory C:\Users\ghevi\OneDrive\Desktop\gs-rest-service-master\complete\src\test\resources
  18. [INFO]
  19. [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ rest-service ---
  20. [INFO] Nothing to compile - all classes are up to date
  21. [INFO]
  22. [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ rest-service ---
  23. [INFO]
  24. [INFO] -------------------------------------------------------
  25. [INFO] T E S T S
  26. [INFO] -------------------------------------------------------
  27. [INFO] Running com.example.restservice.GreetingControllerTests
  28. 22:35:24.098 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
  29. 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)]
  30. 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]
  31. 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
  32. 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
  33. 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
  34. 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}.
  35. 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.
  36. 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]
  37. 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]
  38. 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
  39. 22:35:24.376 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.example.restservice.GreetingControllerTests]: using defaults.
  40. 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]
  41. 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]
  42. 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]
  43. 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]
  44. 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].
  45. 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}
  46.  
  47. :: Spring Boot :: (v2.2.2.RELEASE)
  48.  
  49. 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)
  50. 2020-02-12 22:35:24.636 INFO 7972 --- [ main] c.e.restservice.GreetingControllerTests : No active profile set, falling back to default profiles: default
  51. 2020-02-12 22:35:25.659 INFO 7972 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
  52. 2020-02-12 22:35:25.904 INFO 7972 --- [ main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
  53. 2020-02-12 22:35:25.904 INFO 7972 --- [ main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet ''
  54. 2020-02-12 22:35:25.914 INFO 7972 --- [ main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 9 ms
  55. 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)
  56.  
  57. MockHttpServletRequest:
  58. HTTP Method = GET
  59. Request URI = /greeting
  60. Parameters = {}
  61. Headers = []
  62. Body = null
  63. Session Attrs = {}
  64.  
  65. Handler:
  66. Type = com.example.restservice.GreetingController
  67. Method = com.example.restservice.GreetingController#greeting(String)
  68.  
  69. Async:
  70. Async started = false
  71. Async result = null
  72.  
  73. Resolved Exception:
  74. Type = null
  75.  
  76. ModelAndView:
  77. View name = null
  78. View = null
  79. Model = null
  80.  
  81. FlashMap:
  82. Attributes = null
  83.  
  84. MockHttpServletResponse:
  85. Status = 200
  86. Error message = null
  87. Headers = [Content-Type:"application/json"]
  88. Content type = application/json
  89. Body = {"id":1,"content":"Hello, World!"}
  90. Forwarded URL = null
  91. Redirected URL = null
  92. Cookies = []
  93.  
  94. MockHttpServletRequest:
  95. HTTP Method = GET
  96. Request URI = /greeting
  97. Parameters = {name=[Spring Community]}
  98. Headers = []
  99. Body = null
  100. Session Attrs = {}
  101.  
  102. Handler:
  103. Type = com.example.restservice.GreetingController
  104. Method = com.example.restservice.GreetingController#greeting(String)
  105.  
  106. Async:
  107. Async started = false
  108. Async result = null
  109.  
  110. Resolved Exception:
  111. Type = null
  112.  
  113. ModelAndView:
  114. View name = null
  115. View = null
  116. Model = null
  117.  
  118. FlashMap:
  119. Attributes = null
  120.  
  121. MockHttpServletResponse:
  122. Status = 200
  123. Error message = null
  124. Headers = [Content-Type:"application/json"]
  125. Content type = application/json
  126. Body = {"id":2,"content":"Hello, Spring Community!"}
  127. Forwarded URL = null
  128. Redirected URL = null
  129. Cookies = []
  130. [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.212 s - in com.example.restservice.GreetingControllerTests
  131. 2020-02-12 22:35:26.286 INFO 7972 --- [extShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
  132. [INFO]
  133. [INFO] Results:
  134. [INFO]
  135. [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
  136. [INFO]
  137. [INFO]
  138. [INFO] --- maven-jar-plugin:3.1.2:jar (default-jar) @ rest-service ---
  139. [INFO] Building jar: C:\Users\ghevi\OneDrive\Desktop\gs-rest-service-master\complete\target\rest-service-0.0.1-SNAPSHOT.jar
  140. [INFO]
  141. [INFO] --- spring-boot-maven-plugin:2.2.2.RELEASE:repackage (repackage) @ rest-service ---
  142. [INFO] Replacing main artifact with repackaged archive
  143. [INFO]
  144. [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ rest-service ---
  145. [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
  146. [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
  147. [INFO] ------------------------------------------------------------------------
  148. [INFO] BUILD SUCCESS
  149. [INFO] ------------------------------------------------------------------------
  150. [INFO] Total time: 5.447 s
  151. [INFO] Finished at: 2020-02-12T22:35:27+01:00
  152. [INFO] ------------------------------------------------------------------------ ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement