Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pull-vert committed Feb 2, 2025
1 parent bb84e55 commit e3a4b2a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ open class SlowReaderBenchmark {
private val ARRAY = ByteArray(CHUNKS_BYTE_SIZE) { 0x61 }
}

@Setup(Level.Trial)
@Setup
fun setup() {
val delayedInputStream = object : InputStream() {
override fun read(): Int {
Expand Down Expand Up @@ -60,7 +60,7 @@ open class SlowReaderBenchmark {
}
}

@TearDown(Level.Trial)
@TearDown
fun tearDown() {
when (type) {
"jayo" -> jayoReader.close()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ open class SlowWriterBenchmark {
private val OKIO_ARRAY = ByteArray(OKIO_EXPECTED_SIZE) { 0x61 }
}

@Setup(Level.Trial)
@Setup
fun setup() {
val delayedOutputStreamJayo = object : OutputStream() {
val bytes = ByteArray(JAYO_EXPECTED_SIZE)
Expand Down Expand Up @@ -89,7 +89,7 @@ open class SlowWriterBenchmark {
}
}

@TearDown(Level.Trial)
@TearDown
fun tearDown() {
when (type) {
"jayo" -> jayoWriter.close()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ open class SocketReaderBenchmark {
private val array = ByteArray(BYTE_COUNT) { 0x61 }
}

@Setup(Level.Trial)
@Setup
fun setup() {
serverSocket = ServerSocket(0)
// start sender server
Expand Down Expand Up @@ -92,7 +92,7 @@ open class SocketReaderBenchmark {
}
}

@TearDown(Level.Trial)
@TearDown
fun tearDown() {
clientOutputStream.close()
clientSocket.close()
Expand Down
5 changes: 1 addition & 4 deletions build-logic/src/main/kotlin/jayo-commons.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,10 @@ repositories {
dependencies {
api("org.jspecify:jspecify:${catalogVersion("jspecify")}")

testImplementation(platform("org.junit:junit-bom:${catalogVersion("junit")}"))
testImplementation("org.junit.jupiter:junit-jupiter:${catalogVersion("junit")}")
testImplementation("org.assertj:assertj-core:${catalogVersion("assertj")}")
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-params")
testImplementation(kotlin("test"))

testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
testRuntimeOnly("org.slf4j:slf4j-jdk-platform-logging:${catalogVersion("slf4j")}")
testRuntimeOnly("ch.qos.logback:logback-classic:${catalogVersion("logback")}")
}
Expand Down
10 changes: 4 additions & 6 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,17 @@ dependencies {
compileOnly("org.bouncycastle:bctls-jdk18on:${catalogVersion("bouncycastle")}")
compileOnly("org.conscrypt:conscrypt-openjdk-uber:${catalogVersion("conscrypt")}")

testFixturesImplementation(platform("org.junit:junit-bom:${catalogVersion("junit")}"))
testFixturesImplementation("org.assertj:assertj-core:${catalogVersion("assertj")}")
testFixturesImplementation("ch.qos.logback:logback-classic:${catalogVersion("logback")}")

testFixturesApi("org.junit.jupiter:junit-jupiter-api")
testFixturesApi("org.junit.jupiter:junit-jupiter-params")
testFixturesApi("org.junit.jupiter:junit-jupiter:${catalogVersion("junit")}")
testFixturesApi("org.hamcrest:hamcrest:${catalogVersion("hamcrest")}")
testFixturesApi("org.bouncycastle:bcprov-jdk18on:${catalogVersion("bouncycastle")}")
testFixturesApi("org.conscrypt:conscrypt-openjdk-uber:${catalogVersion("conscrypt")}")

// classifier for AmazonCorrettoCryptoProvider = linux-x86_64
testFixturesApi("software.amazon.cryptools:AmazonCorrettoCryptoProvider:${catalogVersion("amazonCorretto")}:linux-x86_64")
testFixturesImplementation("org.bouncycastle:bcpkix-jdk18on:${catalogVersion("bouncycastle")}")
testFixturesImplementation("org.bouncycastle:bctls-jdk18on:${catalogVersion("bouncycastle")}")
testFixturesImplementation("org.assertj:assertj-core:${catalogVersion("assertj")}")
testFixturesImplementation("ch.qos.logback:logback-classic:${catalogVersion("logback")}")
}

tasks {
Expand Down
1 change: 0 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[versions]

# plugins
# https://github.com/JetBrains/kotlin/releases
kotlin = "2.1.0"
Expand Down

0 comments on commit e3a4b2a

Please sign in to comment.