Guest User

Untitled

a guest
Aug 18th, 2017
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5.83 KB | None | 0 0
  1. {"email":"test@mail.com","password":"password"}
  2.  
  3. MockHttpServletRequest:
  4.       HTTP Method = POST
  5.       Request URI = /registration
  6.        Parameters = {}
  7.           Headers = {Content-Type=[application/json;charset=UTF-8]}
  8.  
  9. Handler:
  10.              Type = com.smart.notes.smart_notes.controller.user.RegistrationController
  11.            Method = public void com.smart.notes.smart_notes.controller.user.RegistrationController.addUser(com.smart.notes.smart_notes.entity.user.UserDTO)
  12.  
  13. Async:
  14.     Async started = false
  15.      Async result = null
  16.  
  17. Resolved Exception:
  18.              Type = null
  19.  
  20. ModelAndView:
  21.         View name = null
  22.              View = null
  23.             Model = null
  24.  
  25. FlashMap:
  26.        Attributes = null
  27.  
  28. MockHttpServletResponse:
  29.            Status = 200
  30.     Error message = null
  31.           Headers = {Access-Control-Allow-Origin=[*], Access-Control-Max-Age=[3600], Access-Control-Allow-Headers=[Authorization, Content-Type, Accept, X-Requested-With, Origin, Access-Control-Request-Method, Access-Control-Request-Headers], Access-Control-Expose-Headers=[Authorization, Content-Type, Accept], Access-Control-Allow-Methods=[POST,GET,OPTIONS,PUT,DELETE], X-Content-Type-Options=[nosniff], X-XSS-Protection=[1; mode=block], Cache-Control=[no-cache, no-store, max-age=0, must-revalidate], Pragma=[no-cache], Expires=[0], X-Frame-Options=[DENY]}
  32.      Content type = null
  33.              Body =
  34.     Forwarded URL = null
  35.    Redirected URL = null
  36.           Cookies = []
  37.  
  38.  
  39. Argument(s) are different! Wanted:
  40. userServiceImpl bean.addUser(
  41.     UserDTO(email=test@mail.com, password=password, salty=null)
  42. );
  43. -> at com.smart.notes.smart_notes.UserServiceTest.testAddUser(UserServiceTest.java:98)
  44. Actual invocation has different arguments:
  45. userServiceImpl bean.addUser(
  46.     UserDTO(email=test@mail.com, password=password, salty=null)
  47. );
  48. -> at com.smart.notes.smart_notes.controller.user.RegistrationController.addUser(RegistrationController.java:25)
  49.  
  50. Comparison Failure:  <Click to see difference>
  51.  
  52. Argument(s) are different! Wanted:
  53. userServiceImpl bean.addUser(
  54.     UserDTO(email=test@mail.com, password=password, salty=null)
  55. );
  56. -> at com.smart.notes.smart_notes.UserServiceTest.testAddUser(UserServiceTest.java:98)
  57. Actual invocation has different arguments:
  58. userServiceImpl bean.addUser(
  59.     UserDTO(email=test@mail.com, password=password, salty=null)
  60. );
  61. -> at com.smart.notes.smart_notes.controller.user.RegistrationController.addUser(RegistrationController.java:25)
  62.  
  63.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  64.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  65.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  66.     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  67.     at com.smart.notes.smart_notes.UserServiceTest.testAddUser(UserServiceTest.java:98)
  68.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  69.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  70.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  71.     at java.lang.reflect.Method.invoke(Method.java:498)
  72.     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
  73.     at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  74.     at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
  75.     at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
  76.     at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
  77.     at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
  78.     at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
  79.     at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
  80.     at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252)
  81.     at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94)
  82.     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
  83.     at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
  84.     at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
  85.     at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
  86.     at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
  87.     at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  88.     at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  89.     at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
  90.     at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
  91.     at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
  92.     at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
  93.     at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
  94.     at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
  95.     at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
  96.  
  97. 2017-08-18 13:40:22.835  INFO 6864 --- [       Thread-3] o.s.w.c.s.GenericWebApplicationContext   : Closing org.springframework.web.context.support.GenericWebApplicationContext@6ccdb29f: startup date [Fri Aug 18 13:40:20 CEST 2017]; root of context hierarchy
  98. 2017-08-18 13:40:22.840  INFO 6864 --- [       Thread-3] org.mongodb.driver.connection            : Closed connection [connectionId{localValue:2, serverValue:124}] to localhost:27017 because the pool has been closed.
  99.  
  100. Process finished with exit code -1
Add Comment
Please, Sign In to add comment