Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {"email":"test@mail.com","password":"password"}
- MockHttpServletRequest:
- HTTP Method = POST
- Request URI = /registration
- Parameters = {}
- Headers = {Content-Type=[application/json;charset=UTF-8]}
- Handler:
- Type = com.smart.notes.smart_notes.controller.user.RegistrationController
- Method = public void com.smart.notes.smart_notes.controller.user.RegistrationController.addUser(com.smart.notes.smart_notes.entity.user.UserDTO)
- 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 = {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]}
- Content type = null
- Body =
- Forwarded URL = null
- Redirected URL = null
- Cookies = []
- Argument(s) are different! Wanted:
- userServiceImpl bean.addUser(
- UserDTO(email=test@mail.com, password=password, salty=null)
- );
- -> at com.smart.notes.smart_notes.UserServiceTest.testAddUser(UserServiceTest.java:98)
- Actual invocation has different arguments:
- userServiceImpl bean.addUser(
- UserDTO(email=test@mail.com, password=password, salty=null)
- );
- -> at com.smart.notes.smart_notes.controller.user.RegistrationController.addUser(RegistrationController.java:25)
- Comparison Failure: <Click to see difference>
- Argument(s) are different! Wanted:
- userServiceImpl bean.addUser(
- UserDTO(email=test@mail.com, password=password, salty=null)
- );
- -> at com.smart.notes.smart_notes.UserServiceTest.testAddUser(UserServiceTest.java:98)
- Actual invocation has different arguments:
- userServiceImpl bean.addUser(
- UserDTO(email=test@mail.com, password=password, salty=null)
- );
- -> at com.smart.notes.smart_notes.controller.user.RegistrationController.addUser(RegistrationController.java:25)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
- at com.smart.notes.smart_notes.UserServiceTest.testAddUser(UserServiceTest.java:98)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
- at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
- at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
- at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
- at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94)
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
- at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
- at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
- at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
- at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
- at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
- at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
- at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
- at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
- at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
- 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
- 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.
- Process finished with exit code -1
Add Comment
Please, Sign In to add comment