From fee548f6d49b520e0dc0d520084ebc5d25352f12 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Wed, 19 Oct 2022 18:17:14 +0200 Subject: [PATCH] PackageCurationTest: Simplify code by using `Identifier.EMPTY` Signed-off-by: Sebastian Schuberth --- model/src/test/kotlin/PackageCurationTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/src/test/kotlin/PackageCurationTest.kt b/model/src/test/kotlin/PackageCurationTest.kt index 638799e8e1b6d..1402f3f2623f4 100644 --- a/model/src/test/kotlin/PackageCurationTest.kt +++ b/model/src/test/kotlin/PackageCurationTest.kt @@ -422,7 +422,7 @@ class PackageCurationTest : WordSpec({ private fun packageCurationForVersion(version: String) = PackageCuration(identifierForVersion(version), PackageCurationData()) -private fun identifierForVersion(version: String) = Identifier(type = "", namespace = "", name = "", version = version) +private fun identifierForVersion(version: String) = Identifier.EMPTY.copy(version = version) private fun declaredLicenseMappingCuration(id: Identifier, vararg entries: Pair): PackageCuration = PackageCuration(