From fadd9c1940f430a45d8f00a2905146b3d131de9b Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 23 Sep 2025 13:45:48 -0400 Subject: [PATCH] Creates a shared JVM-test module and moves the jackson inlining tests there --- quartz/build.gradle.kts | 9 +++++++++ .../jackson/InliningTagArrayPrettyPrinterTest.kt | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) rename quartz/src/{commonTest => jvmAndroidTest}/kotlin/com/vitorpamplona/quartz/nip01Core/jackson/InliningTagArrayPrettyPrinterTest.kt (98%) diff --git a/quartz/build.gradle.kts b/quartz/build.gradle.kts index 09a0b6f1b..1d0752915 100644 --- a/quartz/build.gradle.kts +++ b/quartz/build.gradle.kts @@ -141,6 +141,14 @@ kotlin { } } + // Must be defined before androidMain and jvmMain + val jvmAndroidTest = create("jvmAndroidTest") { + dependsOn(commonTest.get()) + dependencies { + implementation(libs.kotlin.test) + } + } + jvmMain { dependsOn(jvmAndroid) dependencies { @@ -154,6 +162,7 @@ kotlin { } jvmTest { + dependsOn(jvmAndroidTest) dependencies { // Bitcoin secp256k1 bindings implementation(libs.secp256k1.kmp.jni.jvm) diff --git a/quartz/src/commonTest/kotlin/com/vitorpamplona/quartz/nip01Core/jackson/InliningTagArrayPrettyPrinterTest.kt b/quartz/src/jvmAndroidTest/kotlin/com/vitorpamplona/quartz/nip01Core/jackson/InliningTagArrayPrettyPrinterTest.kt similarity index 98% rename from quartz/src/commonTest/kotlin/com/vitorpamplona/quartz/nip01Core/jackson/InliningTagArrayPrettyPrinterTest.kt rename to quartz/src/jvmAndroidTest/kotlin/com/vitorpamplona/quartz/nip01Core/jackson/InliningTagArrayPrettyPrinterTest.kt index 39d8c4be9..8a17566c5 100644 --- a/quartz/src/commonTest/kotlin/com/vitorpamplona/quartz/nip01Core/jackson/InliningTagArrayPrettyPrinterTest.kt +++ b/quartz/src/jvmAndroidTest/kotlin/com/vitorpamplona/quartz/nip01Core/jackson/InliningTagArrayPrettyPrinterTest.kt @@ -21,8 +21,8 @@ package com.vitorpamplona.quartz.nip01Core.jackson import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper -import org.junit.Assert.assertEquals import kotlin.test.Test +import kotlin.test.assertEquals class InliningTagArrayPrettyPrinterTest { val mapper =