Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.24 KB | None | 0 0
  1. [INFO] Scanning for projects...
  2. [INFO]
  3. [INFO] ------------------------------------------------------------------------
  4. [INFO] Building app 0.0.1-SNAPSHOT
  5. [INFO] ------------------------------------------------------------------------
  6. [INFO]
  7. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ rental ---
  8. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  9. [INFO] Copying 1 resource
  10. [INFO] Copying 1 resource
  11. [INFO]
  12. [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ rental ---
  13. [INFO] Nothing to compile - all classes are up to date
  14. [INFO]
  15. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ rental ---
  16. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  17. [INFO] skip non existing resourceDirectory C:\Users\Michał\Documents\jubel\appRental\app\src\test\resources
  18. [INFO]
  19. [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ rental ---
  20. [INFO] Nothing to compile - all classes are up to date
  21. [INFO]
  22. [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ rental ---
  23. [INFO] Surefire report directory: C:\Users\Michał\Documents\jubel\appRental\app\target\surefire-reports
  24.  
  25. -------------------------------------------------------
  26. T E S T S
  27. -------------------------------------------------------
  28. 19:12:59.187 [main] DEBUG org.springframework.test.context.junit4.SpringJUnit4ClassRunner - SpringJUnit4ClassRunner constructor called with [class my.vaadin.AppApplicationTests]
  29. 19:12:59.196 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
  30. 19:12:59.203 [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)]
  31. 19:12:59.220 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [my.vaadin.AppApplicationTests] from class [org.springframework.test.context.web.WebTestContextBootstrapper]
  32. 19:12:59.245 [main] DEBUG org.springframework.test.context.web.WebTestContextBootstrapper - Found explicit ContextLoader class [org.springframework.boot.test.SpringApplicationContextLoader] for context configuration attributes [ContextConfigurationAttributes@7cd62f43 declaringClass = 'my.vaadin.AppApplicationTests', classes = '{class my.vaadin.AppApplication}', locations = '{}', inheritLocations = true, initializers = '{}', inheritInitializers = true, name = [null], contextLoaderClass = 'org.springframework.boot.test.SpringApplicationContextLoader']
  33. 19:12:59.255 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [my.vaadin.AppApplicationTests]: class path resource [my/vaadin/AppApplicationTests-context.xml] does not exist
  34. 19:12:59.255 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [my.vaadin.AppApplicationTests]: class path resource [my/vaadin/AppApplicationTestsContext.groovy] does not exist
  35. 19:12:59.256 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [my.vaadin.AppApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
  36. 19:12:59.258 [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 [my.vaadin.AppApplicationTests]
  37. 19:12:59.263 [main] DEBUG org.springframework.test.context.web.WebTestContextBootstrapper - @TestExecutionListeners is not present for class [my.vaadin.AppApplicationTests]: using defaults.
  38. 19:12:59.271 [main] INFO org.springframework.test.context.web.WebTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [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]
  39. 19:12:59.282 [main] INFO org.springframework.test.context.web.WebTestContextBootstrapper - Could not instantiate TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [org/springframework/web/context/request/RequestAttributes]
  40. 19:12:59.292 [main] INFO org.springframework.test.context.web.WebTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@4973813a, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@6321e813, org.springframework.test.context.support.DirtiesContextTestExecutionListener@79be0360, org.springframework.test.context.transaction.TransactionalTestExecutionListener@22a67b4, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@57855c9a]
  41. 19:12:59.295 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [my.vaadin.AppApplicationTests]
  42. 19:12:59.295 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [my.vaadin.AppApplicationTests]
  43. Running my.vaadin.AppApplicationTests
  44. 19:12:59.298 [main] DEBUG org.springframework.test.context.junit4.SpringJUnit4ClassRunner - SpringJUnit4ClassRunner constructor called with [class my.vaadin.AppApplicationTests]
  45. 19:12:59.298 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
  46. 19:12:59.298 [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)]
  47. 19:12:59.299 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [my.vaadin.AppApplicationTests] from class [org.springframework.test.context.web.WebTestContextBootstrapper]
  48. 19:12:59.301 [main] DEBUG org.springframework.test.context.web.WebTestContextBootstrapper - Found explicit ContextLoader class [org.springframework.boot.test.SpringApplicationContextLoader] for context configuration attributes [ContextConfigurationAttributes@4f063c0a declaringClass = 'my.vaadin.AppApplicationTests', classes = '{class my.vaadin.AppApplication}', locations = '{}', inheritLocations = true, initializers = '{}', inheritInitializers = true, name = [null], contextLoaderClass = 'org.springframework.boot.test.SpringApplicationContextLoader']
  49. 19:12:59.301 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [my.vaadin.AppApplicationTests]: class path resource [my/vaadin/AppApplicationTests-context.xml] does not exist
  50. 19:12:59.301 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [my.vaadin.AppApplicationTests]: class path resource [my/vaadin/AppApplicationTestsContext.groovy] does not exist
  51. 19:12:59.301 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [my.vaadin.AppApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
  52. 19:12:59.301 [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 [my.vaadin.AppApplicationTests]
  53. 19:12:59.303 [main] DEBUG org.springframework.test.context.web.WebTestContextBootstrapper - @TestExecutionListeners is not present for class [my.vaadin.AppApplicationTests]: using defaults.
  54. 19:12:59.305 [main] INFO org.springframework.test.context.web.WebTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [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]
  55. 19:12:59.305 [main] INFO org.springframework.test.context.web.WebTestContextBootstrapper - Could not instantiate TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [org/springframework/web/context/request/RequestAttributes]
  56. 19:12:59.306 [main] INFO org.springframework.test.context.web.WebTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@2d6eabae, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@4e7dc304, org.springframework.test.context.support.DirtiesContextTestExecutionListener@64729b1e, org.springframework.test.context.transaction.TransactionalTestExecutionListener@10bbd20a, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@48503868]
  57. 19:12:59.306 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [my.vaadin.AppApplicationTests]
  58. 19:12:59.306 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [my.vaadin.AppApplicationTests]
  59. 19:12:59.308 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [my.vaadin.AppApplicationTests]
  60. 19:12:59.308 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [my.vaadin.AppApplicationTests]
  61. 19:12:59.309 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@1d29cf23 testClass = AppApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@5f282abb testClass = AppApplicationTests, locations = '{}', classes = '{class my.vaadin.AppApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.SpringApplicationContextLoader', parent = [null]]], class annotated with @DirtiesContext [false] with mode [null].
  62. 19:12:59.310 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [my.vaadin.AppApplicationTests]
  63. 19:12:59.310 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [my.vaadin.AppApplicationTests]
  64. 19:12:59.312 [main] DEBUG org.springframework.test.context.support.DependencyInjectionTestExecutionListener - Performing dependency injection for test context [[DefaultTestContext@1d29cf23 testClass = AppApplicationTests, testInstance = my.vaadin.AppApplicationTests@4b1c1ea0, testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@5f282abb testClass = AppApplicationTests, locations = '{}', classes = '{class my.vaadin.AppApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.SpringApplicationContextLoader', parent = [null]]]].
  65. 19:12:59.401 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence
  66. 19:12:59.402 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence
  67. 19:12:59.402 [main] DEBUG org.springframework.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
  68. 19:12:59.404 [main] DEBUG org.springframework.core.env.StandardEnvironment - Adding [integrationTest] PropertySource with search precedence immediately lower than [systemEnvironment]
  69. 19:12:59.414 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - After test class: context [DefaultTestContext@1d29cf23 testClass = AppApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@5f282abb testClass = AppApplicationTests, locations = '{}', classes = '{class my.vaadin.AppApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.SpringApplicationContextLoader', parent = [null]]], class annotated with @DirtiesContext [false] with mode [null].
  70. Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.12 sec <<< FAILURE! - in my.vaadin.AppApplicationTests
  71. contextLoads(my.vaadin.AppApplicationTests) Time elapsed: 0.011 sec <<< ERROR!
  72. java.lang.NoClassDefFoundError: org/springframework/web/context/support/GenericWebApplicationContext
  73. at org.springframework.boot.test.SpringApplicationContextLoader$WebConfigurer.<clinit>(SpringApplicationContextLoader.java:227)
  74. at org.springframework.boot.test.SpringApplicationContextLoader.loadContext(SpringApplicationContextLoader.java:92)
  75. at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98)
  76. at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116)
  77. at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83)
  78. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:117)
  79. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83)
  80. at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:228)
  81. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:230)
  82. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289)
  83. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  84. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291)
  85. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:249)
  86. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
  87. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
  88. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
  89. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
  90. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
  91. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
  92. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  93. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  94. at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
  95. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
  96. at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
  97. at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
  98. at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
  99. at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
  100. at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
  101. at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
  102. at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
  103. Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.support.GenericWebApplicationContext
  104. at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
  105. at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  106. at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
  107. at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  108. at org.springframework.boot.test.SpringApplicationContextLoader$WebConfigurer.<clinit>(SpringApplicationContextLoader.java:227)
  109. at org.springframework.boot.test.SpringApplicationContextLoader.loadContext(SpringApplicationContextLoader.java:92)
  110. at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98)
  111. at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116)
  112. at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83)
  113. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:117)
  114. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83)
  115. at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:228)
  116. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:230)
  117. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289)
  118. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  119. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291)
  120. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:249)
  121. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
  122. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
  123. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
  124. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
  125. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
  126. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
  127. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  128. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  129. at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
  130. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
  131. at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
  132. at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
  133. at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
  134. at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
  135. at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
  136. at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
  137. at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
  138.  
  139.  
  140. Results :
  141.  
  142. Tests in error:
  143. AppApplicationTests.contextLoads » NoClassDefFound org/springframework/web/con...
  144.  
  145. Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
  146.  
  147. [INFO] ------------------------------------------------------------------------
  148. [INFO] BUILD FAILURE
  149. [INFO] ------------------------------------------------------------------------
  150. [INFO] Total time: 2.732 s
  151. [INFO] Finished at: 2016-09-26T19:12:59+02:00
  152. [INFO] Final Memory: 16M/226M
  153. [INFO] ------------------------------------------------------------------------
  154. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project rental: There are test failures.
  155. [ERROR]
  156. [ERROR] Please refer to C:\Users\Michał\Documents\jubel\appRental\app\target\surefire-reports for the individual test results.
  157. [ERROR] -> [Help 1]
  158. [ERROR]
  159. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  160. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  161. [ERROR]
  162. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  163. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement