ConsumerBTest

1

tests

0

failures

0

ignored

0.119s

duration

100%

successful

Tests

Test Duration Result
validate_should_return_a_well_formatted_existing_customer() 0.119s passed

Standard output

2023-05-22 09:13:10.150  INFO 3446 --- [    Test worker] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [edu.obya.blueprint.customer.cdc.spring.provider.ConsumerBTest], using SpringBootContextLoader
2023-05-22 09:13:10.150  INFO 3446 --- [    Test worker] o.s.t.c.support.AbstractContextLoader    : Could not detect default resource locations for test class [edu.obya.blueprint.customer.cdc.spring.provider.ConsumerBTest]: no resource found for suffixes {-context.xml, Context.groovy}.
2023-05-22 09:13:10.151  INFO 3446 --- [    Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [edu.obya.blueprint.customer.cdc.spring.provider.ConsumerBTest]: ConsumerBTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2023-05-22 09:13:10.153  INFO 3446 --- [    Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration edu.obya.blueprint.Application for test class edu.obya.blueprint.customer.cdc.spring.provider.ConsumerBTest
2023-05-22 09:13:10.154  INFO 3446 --- [    Test worker] .b.t.c.SpringBootTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener, org.springframework.security.test.context.support.ReactorContextTestExecutionListener, 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.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, 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, io.zonky.test.db.EmbeddedDatabaseTestExecutionListener, io.zonky.test.db.event.EventPublishingTestExecutionListener, io.zonky.test.db.flyway.OptimizedFlywayTestExecutionListener]
2023-05-22 09:13:10.154  INFO 3446 --- [    Test worker] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@24a301a3, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@7d80f543, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@2531c319, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@d4c6a43, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@315edc50, org.springframework.test.context.support.DirtiesContextTestExecutionListener@4b0e0dd5, io.zonky.test.db.EmbeddedDatabaseTestExecutionListener@608c36a6, io.zonky.test.db.flyway.OptimizedFlywayTestExecutionListener@efc5686, org.springframework.test.context.transaction.TransactionalTestExecutionListener@4907b755, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@72dc7b05, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener@73e45afe, org.springframework.test.context.event.EventPublishingTestExecutionListener@1f406a62, org.springframework.security.test.context.support.ReactorContextTestExecutionListener@6b89cbc0, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@7a9c91e7, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@2b7e07e0, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@37717b97, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@12837172, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@c0ed96c, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@57149e0a, io.zonky.test.db.event.EventPublishingTestExecutionListener@6b85fabc]
2023-05-22 09:13:10.168  INFO 3446 --- [    Test worker] o.s.mock.web.MockServletContext          : Initializing Spring TestDispatcherServlet ''
2023-05-22 09:13:10.168  INFO 3446 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Initializing Servlet ''
2023-05-22 09:13:10.168  INFO 3446 --- [    Test worker] o.s.t.web.servlet.TestDispatcherServlet  : Completed initialization in 0 ms

MockHttpServletRequest:
      HTTP Method = GET
      Request URI = /customers/64a0f7d1-7b25-412d-b1e0-abacde3c21cd
       Parameters = {}
          Headers = [Authorization:"Basic dGVzdDp0ZXN0"]
             Body = <no character encoding set>
    Session Attrs = {SPRING_SECURITY_CONTEXT=SecurityContextImpl [Authentication=UsernamePasswordAuthenticationToken [Principal=org.springframework.security.core.userdetails.User [Username=test, Password=[PROTECTED], Enabled=true, AccountNonExpired=true, credentialsNonExpired=true, AccountNonLocked=true, Granted Authorities=[ROLE_USER]], Credentials=[PROTECTED], Authenticated=true, Details=WebAuthenticationDetails [RemoteIpAddress=127.0.0.1, SessionId=null], Granted Authorities=[ROLE_USER]]]}

Handler:
             Type = edu.obya.blueprint.customer.adapter.rest.CustomerController
           Method = edu.obya.blueprint.customer.adapter.rest.CustomerController#get(UUID)

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 = [Vary:"Origin", "Access-Control-Request-Method", "Access-Control-Request-Headers", Content-Type:"application/json", 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 = application/json
             Body = {"id":"64a0f7d1-7b25-412d-b1e0-abacde3c21cd","fullName":"John Doe","firstName":"John","lastName":"Doe"}
    Forwarded URL = null
   Redirected URL = null
          Cookies = []