From 41b7916332492619dd20ec9e6f24d2415679aaa7 Mon Sep 17 00:00:00 2001 From: josecoll Date: Tue, 14 May 2019 18:29:36 +0100 Subject: [PATCH] Move test Java schemas to Kotlin as they are used only by Kotlin JUnit test (was causing ASM compilation failure). --- ...ppedSchemasCrossReferenceDetectionTests.kt | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/core/src/test/kotlin/net/corda/core/schemas/MappedSchemasCrossReferenceDetectionTests.kt b/core/src/test/kotlin/net/corda/core/schemas/MappedSchemasCrossReferenceDetectionTests.kt index e194d8c3dd..40022e7514 100644 --- a/core/src/test/kotlin/net/corda/core/schemas/MappedSchemasCrossReferenceDetectionTests.kt +++ b/core/src/test/kotlin/net/corda/core/schemas/MappedSchemasCrossReferenceDetectionTests.kt @@ -78,31 +78,31 @@ class MappedSchemasCrossReferenceDetectionTests { @Test fun `no cross reference to other schema java`() { - assertThat(fieldsFromOtherMappedSchema(GoodSchemaJavaV1())).isEmpty() - assertThat(methodsFromOtherMappedSchema(GoodSchemaJavaV1())).isEmpty() + assertThat(fieldsFromOtherMappedSchema(GoodSchemaV1())).isEmpty() + assertThat(methodsFromOtherMappedSchema(GoodSchemaV1())).isEmpty() } @Test fun `cross reference to other schema is detected java`() { - assertThat(fieldsFromOtherMappedSchema(BadSchemaJavaV1())).isEmpty() - assertThat(methodsFromOtherMappedSchema(BadSchemaJavaV1())).isNotEmpty + assertThat(fieldsFromOtherMappedSchema(BadSchemaV1())).isEmpty() + assertThat(methodsFromOtherMappedSchema(BadSchemaV1())).isNotEmpty } @Test fun `cross reference to other schema via field is detected java`() { - assertThat(fieldsFromOtherMappedSchema(BadSchemaNoGetterJavaV1())).isNotEmpty - assertThat(methodsFromOtherMappedSchema(BadSchemaNoGetterJavaV1())).isEmpty() + assertThat(fieldsFromOtherMappedSchema(BadSchemaNoGetterV1())).isNotEmpty + assertThat(methodsFromOtherMappedSchema(BadSchemaNoGetterV1())).isEmpty() } @Test fun `cross reference via non JPA field is allowed java`() { - assertThat(fieldsFromOtherMappedSchema(TrickySchemaJavaV1())).isEmpty() - assertThat(methodsFromOtherMappedSchema(TrickySchemaJavaV1())).isEmpty() + assertThat(fieldsFromOtherMappedSchema(TrickySchemaV1())).isEmpty() + assertThat(methodsFromOtherMappedSchema(TrickySchemaV1())).isEmpty() } @Test fun `cross reference via transient field is allowed java`() { - assertThat(fieldsFromOtherMappedSchema(PoliteSchemaJavaV1())).isEmpty() - assertThat(methodsFromOtherMappedSchema(PoliteSchemaJavaV1())).isEmpty() + assertThat(fieldsFromOtherMappedSchema(PoliteSchemaV1())).isEmpty() + assertThat(methodsFromOtherMappedSchema(PoliteSchemaV1())).isEmpty() } } \ No newline at end of file