두번째, 테스트 작성 후, 실패!

7월 11, 2014 9:41:33 오전 org.springframework.mock.web.MockServletContext log
정보: Initializing Spring FrameworkServlet ''
7월 11, 2014 9:41:33 오전 org.springframework.test.web.servlet.TestDispatcherServlet initServletBean
정보: FrameworkServlet '': initialization started
7월 11, 2014 9:41:33 오전 org.springframework.test.web.servlet.TestDispatcherServlet initServletBean
정보: FrameworkServlet '': initialization completed in 0 ms
7월 11, 2014 9:41:33 오전 org.springframework.web.servlet.PageNotFound noHandlerFound
경고: No mapping found for HTTP request with URI [/aggregators/orders/f3512d26-72f6-4290-9265-63ad69eccc13] in DispatcherServlet with name ''

MockHttpServletRequest:
         HTTP Method = GET
         Request URI = /aggregators/orders/f3512d26-72f6-4290-9265-63ad69eccc13
          Parameters = {}
             Headers = {Accept=[application/json]}

             Handler:
                Type = null

  Resolved Exception:
                Type = null

        ModelAndView:
           View name = null
                View = null
               Model = null

            FlashMap:

MockHttpServletResponse:
              Status = 404
       Error message = null
             Headers = {}
        Content type = null
                Body =
       Forwarded URL = null
      Redirected URL = null
             Cookies = []

java.lang.AssertionError: Status
Expected :200
Actual   :404
 <Click to see difference>
	at org.springframework.test.util.AssertionErrors.fail(AssertionErrors.java:60)
	at org.springframework.test.util.AssertionErrors.assertEquals(AssertionErrors.java:89)
	at org.springframework.test.web.servlet.result.StatusResultMatchers$5.match(StatusResultMatchers.java:546)
	at org.springframework.test.web.servlet.MockMvc$1.andExpect(MockMvc.java:141)
	at rest.controller.ViewOrderIntegrationTest.thatViewOrderUserHttpOK(ViewOrderIntegrationTest.java:68)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
테스트 패스~
Connected to the target VM, address: '127.0.0.1:48628', transport: 'socket'
setup
7월 11, 2014 10:53:47 오전 org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder$StaticRequestMappingHandlerMapping registerHandlerMethod
정보: Mapped "{[/aggregators/orders/{id}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.http.ResponseEntity<com.yummynoodlebar.rest.domain.Order> com.yummynoodlebar.rest.controller.OrderQueriesController.viewOrder(java.lang.String)
7월 11, 2014 10:53:47 오전 org.springframework.mock.web.MockServletContext log
정보: Initializing Spring FrameworkServlet ''
7월 11, 2014 10:53:47 오전 org.springframework.test.web.servlet.TestDispatcherServlet initServletBean
정보: FrameworkServlet '': initialization started
7월 11, 2014 10:53:47 오전 org.springframework.test.web.servlet.TestDispatcherServlet initServletBean
정보: FrameworkServlet '': initialization completed in 8 ms
thatViewOrderRendersCorrectly

MockHttpServletRequest:
         HTTP Method = GET
         Request URI = /aggregators/orders/f3512d26-72f6-4290-9265-63ad69eccc13
          Parameters = {}
             Headers = {Accept=[application/json]}

             Handler:
                Type = com.yummynoodlebar.rest.controller.OrderQueriesController
              Method = public org.springframework.http.ResponseEntity<com.yummynoodlebar.rest.domain.Order> com.yummynoodlebar.rest.controller.OrderQueriesController.viewOrder(java.lang.String)

  Resolved Exception:
                Type = null

        ModelAndView:
           View name = null
                View = null
               Model = null

            FlashMap:

MockHttpServletResponse:
              Status = 404
       Error message = null
             Headers = {}
        Content type = null
                Body =
       Forwarded URL = null
      Redirected URL = null
             Cookies = []
setup
7월 11, 2014 10:53:48 오전 org.springframework.test.web.servlet.setup.StandaloneMockMvcBuilder$StaticRequestMappingHandlerMapping registerHandlerMethod
정보: Mapped "{[/aggregators/orders/{id}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.http.ResponseEntity<com.yummynoodlebar.rest.domain.Order> com.yummynoodlebar.rest.controller.OrderQueriesController.viewOrder(java.lang.String)
7월 11, 2014 10:53:48 오전 org.springframework.mock.web.MockServletContext log
정보: Initializing Spring FrameworkServlet ''
7월 11, 2014 10:53:48 오전 org.springframework.test.web.servlet.TestDispatcherServlet initServletBean
정보: FrameworkServlet '': initialization started
7월 11, 2014 10:53:48 오전 org.springframework.test.web.servlet.TestDispatcherServlet initServletBean
정보: FrameworkServlet '': initialization completed in 0 ms
thatViewOrderUserHttpOK

MockHttpServletRequest:
         HTTP Method = GET
         Request URI = /aggregators/orders/f3512d26-72f6-4290-9265-63ad69eccc13
          Parameters = {}
             Headers = {Accept=[application/json]}

             Handler:
                Type = com.yummynoodlebar.rest.controller.OrderQueriesController
              Method = public org.springframework.http.ResponseEntity<com.yummynoodlebar.rest.domain.Order> com.yummynoodlebar.rest.controller.OrderQueriesController.viewOrder(java.lang.String)

  Resolved Exception:
                Type = null

        ModelAndView:
           View name = null
                View = null
               Model = null

            FlashMap:

MockHttpServletResponse:
              Status = 200
       Error message = null
             Headers = {Content-Type=[application/json;charset=UTF-8]}
        Content type = application/json;charset=UTF-8
                Body = {"dateTimeOfSubmission":null,"items":{"yummy1":12},"key":"f3512d26-72f6-4290-9265-63ad69eccc13"}
       Forwarded URL = null
      Redirected URL = null
             Cookies = []
Disconnected from the target VM, address: '127.0.0.1:48628', transport: 'socket'

Process finished with exit code 0