spring-cloud-openfeign icon indicating copy to clipboard operation
spring-cloud-openfeign copied to clipboard

jackson ident not working

Open xenoterracide opened this issue 3 years ago • 0 comments
trafficstars

jackson ident doesn't seem to work. This is probably an I durm situation.

I have this... but the json is only output on a single line, suggestions? client is super simple, I suspect you could client up anything with log level full to test this.

@SpringBootTest
@ActiveProfiles("dev")
@TestPropertySource(
  properties = [
    "cof.devexchange.feign-log-level = full", // is output but only on a single line
    "spring.jackson.serialization.indent-output= true"
  ]
)
internal class BusinessDivisionClientLiveTest @Autowired constructor(val client: BusinessDivisionClient) {
  @Test
  @WithMockUser
  fun findAllBy() {
    val res = client.findAllBy(BusinessDivisionQueryParams(includeRoles = true))
    assertThat(res.divisions).isNotEmpty
  }
}

xenoterracide avatar Sep 30 '22 22:09 xenoterracide