Skip to content

Commit

Permalink
Used later version of byte-buddy which supports java13
Browse files Browse the repository at this point in the history
  • Loading branch information
vihangpatil committed Oct 12, 2019
1 parent e03bd38 commit 0c51785
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ object Version {
const val arrowTypeClasses = "0.9.0"

const val beam = "2.15.0"
const val byteBuddy = "1.10.1"
const val csv = "1.7"
const val cxf = "3.3.3"
const val dockerComposeJunitRule = "1.3.0"
Expand Down
6 changes: 6 additions & 0 deletions customer-endpoint/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ dependencies {
testRuntimeOnly("io.jsonwebtoken:jjwt-jackson:${Version.jjwt}")

testImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:${Version.mockitoKotlin}")
testImplementation("net.bytebuddy:byte-buddy:${Version.byteBuddy}") {
because("mockito-kotlin:2.2.0 has byte-buddy:1.9.0 which does not work for java13")
}
testImplementation("net.bytebuddy:byte-buddy-agent:${Version.byteBuddy}") {
because("mockito-kotlin:2.2.0 has byte-buddy:1.9.0 which does not work for java13")
}
}

apply(from = "../gradle/jacoco.gradle")
7 changes: 7 additions & 0 deletions graphql/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ dependencies {
implementation("com.graphql-java:graphql-java:13.0")

testImplementation("io.dropwizard:dropwizard-testing:${Version.dropwizard}")

testImplementation("org.mockito:mockito-core:${Version.mockito}")
testImplementation("net.bytebuddy:byte-buddy:${Version.byteBuddy}") {
because("mockito-kotlin:2.2.0 has byte-buddy:1.9.0 which does not work for java13")
}
testImplementation("net.bytebuddy:byte-buddy-agent:${Version.byteBuddy}") {
because("mockito-kotlin:2.2.0 has byte-buddy:1.9.0 which does not work for java13")
}
testImplementation("io.jsonwebtoken:jjwt-api:${Version.jjwt}")
testRuntimeOnly("io.jsonwebtoken:jjwt-impl:${Version.jjwt}")
testRuntimeOnly("io.jsonwebtoken:jjwt-jackson:${Version.jjwt}")
Expand Down
6 changes: 6 additions & 0 deletions sim-administration/simmanager/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ dependencies {

testImplementation("io.dropwizard:dropwizard-testing:${Version.dropwizard}")
testImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:${Version.mockitoKotlin}")
testImplementation("net.bytebuddy:byte-buddy:${Version.byteBuddy}") {
because("mockito-kotlin:2.2.0 has byte-buddy:1.9.0 which does not work for java13")
}
testImplementation("net.bytebuddy:byte-buddy-agent:${Version.byteBuddy}") {
because("mockito-kotlin:2.2.0 has byte-buddy:1.9.0 which does not work for java13")
}
testImplementation("org.testcontainers:postgresql:${Version.testcontainers}")

testImplementation(project(":sim-administration:sm-dp-plus-emulator"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import org.apache.http.impl.client.CloseableHttpClient
import org.junit.AfterClass
import org.junit.Before
import org.junit.ClassRule
import org.junit.Ignore
import org.junit.Test
import org.mockito.Mockito
import org.mockito.Mockito.mock
Expand All @@ -27,7 +26,6 @@ import java.util.*
import javax.ws.rs.client.Entity
import javax.ws.rs.core.MediaType

@Ignore("Fails to Mock config classes which are Kotlin Data classes")
class SimInventoryUnitTests {

companion object {
Expand Down

0 comments on commit 0c51785

Please sign in to comment.