Skip to content

Commit

Permalink
fix: Remove Transactional when using no db
Browse files Browse the repository at this point in the history
  • Loading branch information
sendilkumarn committed Feb 27, 2021
1 parent 6c42afd commit 44f94f4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ import org.springframework.http.HttpEntity
import org.springframework.http.HttpMethod
import org.springframework.http.ResponseEntity
import org.springframework.security.oauth2.client.registration.ClientRegistrationRepository
<%_ if (databaseType !== 'no') { _%>
import org.springframework.transaction.annotation.Transactional
<%_ } _%>
import org.springframework.web.client.RestTemplate

import org.assertj.core.api.Assertions.assertThat
Expand Down Expand Up @@ -76,7 +78,9 @@ class CustomClaimConverterIT {
}

@Test
<%_ if (databaseType !== 'no') { _%>
@Transactional
<%_ } _%>
fun testConvert() {
val claims = hashMapOf<String, Any>()
claims["sub"] = "123"
Expand Down

0 comments on commit 44f94f4

Please sign in to comment.