Skip to content

Commit

Permalink
ResponseAdvise to ResponseAdvice
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJoffe committed Feb 7, 2021
1 parent 0adf4ee commit f5855f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.hndrs.api.autoconfigure

import io.hndrs.api.exception.ExceptionHandler
import io.hndrs.api.response.ResponseAdvise
import io.hndrs.api.response.ResponseAdvice
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

Expand All @@ -14,7 +14,7 @@ open class JsonApiAutoConfiguration {
}

@Bean
open fun responseAdvice(): ResponseAdvise {
return ResponseAdvise()
open fun responseAdvice(): ResponseAdvice {
return ResponseAdvice()
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.hndrs.api.autoconfigure

import io.hndrs.api.exception.ExceptionHandler
import io.hndrs.api.response.ResponseAdvise
import io.hndrs.api.response.ResponseAdvice
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
Expand All @@ -18,7 +18,7 @@ internal class JsonApiAutoConfigurationTest {
AutoConfigurations.of(JsonApiAutoConfiguration::class.java)
).run {
Assertions.assertNotNull(it.getBean(ExceptionHandler::class.java))
Assertions.assertNotNull(it.getBean(ResponseAdvise::class.java))
Assertions.assertNotNull(it.getBean(ResponseAdvice::class.java))
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.ControllerAdvice
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice

@ControllerAdvice
class ResponseAdvise : ResponseBodyAdvice<Any> {
class ResponseAdvice : ResponseBodyAdvice<Any> {

override fun beforeBodyWrite(
value: Any?,
Expand Down

0 comments on commit f5855f3

Please sign in to comment.