mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
Move test Java schemas to Kotlin as they are used only by Kotlin JUnit test (was causing ASM compilation failure).
This commit is contained in:
parent
7afd1e8b25
commit
41b7916332
@ -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()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user