mirror of
https://github.com/corda/corda.git
synced 2024-12-19 21:17:58 +00:00
Merge pull request #7601 from corda/arshadm/ent-11261-fix-class-cast-test-failures
ENT-11261 Re-enabled a number of ignored tests due to class cast exception
This commit is contained in:
commit
b375c7da21
@ -23,7 +23,6 @@ import net.corda.testing.node.internal.InternalMockNetwork
|
|||||||
import net.corda.testing.node.internal.startFlow
|
import net.corda.testing.node.internal.startFlow
|
||||||
import org.junit.After
|
import org.junit.After
|
||||||
import org.junit.Before
|
import org.junit.Before
|
||||||
import org.junit.Ignore
|
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
import kotlin.test.assertNotNull
|
import kotlin.test.assertNotNull
|
||||||
@ -48,7 +47,6 @@ class IdentitySyncFlowTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout=300_000)
|
@Test(timeout=300_000)
|
||||||
@Ignore("TODO JDK17: class cast exception")
|
|
||||||
fun `sync confidential identities`() {
|
fun `sync confidential identities`() {
|
||||||
// Set up values we'll need
|
// Set up values we'll need
|
||||||
val aliceNode = mockNet.createPartyNode(ALICE_NAME)
|
val aliceNode = mockNet.createPartyNode(ALICE_NAME)
|
||||||
@ -77,7 +75,6 @@ class IdentitySyncFlowTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout=300_000)
|
@Test(timeout=300_000)
|
||||||
@Ignore("TODO JDK17: class cast exception")
|
|
||||||
fun `don't offer other's identities confidential identities`() {
|
fun `don't offer other's identities confidential identities`() {
|
||||||
// Set up values we'll need
|
// Set up values we'll need
|
||||||
val aliceNode = mockNet.createPartyNode(ALICE_NAME)
|
val aliceNode = mockNet.createPartyNode(ALICE_NAME)
|
||||||
|
@ -24,7 +24,6 @@ import net.corda.testing.node.internal.enclosedCordapp
|
|||||||
import net.corda.testing.node.internal.startFlow
|
import net.corda.testing.node.internal.startFlow
|
||||||
import org.assertj.core.api.Assertions.assertThatThrownBy
|
import org.assertj.core.api.Assertions.assertThatThrownBy
|
||||||
import org.junit.AfterClass
|
import org.junit.AfterClass
|
||||||
import org.junit.Ignore
|
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import java.security.PublicKey
|
import java.security.PublicKey
|
||||||
|
|
||||||
@ -48,7 +47,6 @@ class SwapIdentitiesFlowTests {
|
|||||||
private val bob = bobNode.info.singleIdentity()
|
private val bob = bobNode.info.singleIdentity()
|
||||||
|
|
||||||
@Test(timeout=300_000)
|
@Test(timeout=300_000)
|
||||||
@Ignore("TODO JDK17: Class cast exception")
|
|
||||||
fun `issue key`() {
|
fun `issue key`() {
|
||||||
assertThat(
|
assertThat(
|
||||||
aliceNode.services.startFlow(SwapIdentitiesInitiator(bob)),
|
aliceNode.services.startFlow(SwapIdentitiesInitiator(bob)),
|
||||||
|
@ -10,7 +10,6 @@ import net.corda.testing.node.MockNetworkParameters;
|
|||||||
import net.corda.testing.node.StartedMockNode;
|
import net.corda.testing.node.StartedMockNode;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
@ -22,7 +21,6 @@ import static net.corda.testing.node.internal.InternalTestUtilsKt.enclosedCordap
|
|||||||
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
|
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
|
||||||
import static org.junit.Assert.fail;
|
import static org.junit.Assert.fail;
|
||||||
|
|
||||||
@Ignore("TODO JDK17: class cast exception")
|
|
||||||
public class FlowsInJavaTest {
|
public class FlowsInJavaTest {
|
||||||
private final MockNetwork mockNet = new MockNetwork(
|
private final MockNetwork mockNet = new MockNetwork(
|
||||||
new MockNetworkParameters().withCordappsForAllNodes(singletonList(enclosedCordapp(this)))
|
new MockNetworkParameters().withCordappsForAllNodes(singletonList(enclosedCordapp(this)))
|
||||||
|
@ -18,10 +18,8 @@ import net.corda.testing.node.internal.enclosedCordapp
|
|||||||
import net.corda.testing.node.internal.startFlow
|
import net.corda.testing.node.internal.startFlow
|
||||||
import org.junit.After
|
import org.junit.After
|
||||||
import org.junit.Before
|
import org.junit.Before
|
||||||
import org.junit.Ignore
|
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
|
||||||
@Ignore("TODO JDK17: class cast exception")
|
|
||||||
class ContractHierarchyTest {
|
class ContractHierarchyTest {
|
||||||
private lateinit var mockNet: InternalMockNetwork
|
private lateinit var mockNet: InternalMockNetwork
|
||||||
|
|
||||||
|
@ -27,10 +27,8 @@ import net.corda.testing.node.internal.InternalMockNetwork
|
|||||||
import net.corda.testing.node.internal.InternalMockNodeParameters
|
import net.corda.testing.node.internal.InternalMockNodeParameters
|
||||||
import net.corda.testing.node.internal.TestStartedNode
|
import net.corda.testing.node.internal.TestStartedNode
|
||||||
import org.junit.AfterClass
|
import org.junit.AfterClass
|
||||||
import org.junit.Ignore
|
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
|
||||||
@Ignore("TODO JDK17: class cast exception")
|
|
||||||
class AttachmentTests : WithMockNet {
|
class AttachmentTests : WithMockNet {
|
||||||
companion object {
|
companion object {
|
||||||
val classMockNet = InternalMockNetwork()
|
val classMockNet = InternalMockNetwork()
|
||||||
|
@ -47,11 +47,9 @@ import net.corda.testing.node.internal.TestStartedNode
|
|||||||
import net.corda.testing.node.internal.enclosedCordapp
|
import net.corda.testing.node.internal.enclosedCordapp
|
||||||
import net.corda.testing.node.internal.startFlow
|
import net.corda.testing.node.internal.startFlow
|
||||||
import org.junit.AfterClass
|
import org.junit.AfterClass
|
||||||
import org.junit.Ignore
|
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import java.util.Currency
|
import java.util.Currency
|
||||||
|
|
||||||
@Ignore("TODO JDK17: class cast exception")
|
|
||||||
class ContractUpgradeFlowTest : WithContracts, WithFinality {
|
class ContractUpgradeFlowTest : WithContracts, WithFinality {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
@ -76,7 +76,6 @@ import net.corda.testing.node.internal.findCordapp
|
|||||||
import org.assertj.core.api.Assertions.assertThat
|
import org.assertj.core.api.Assertions.assertThat
|
||||||
import org.junit.After
|
import org.junit.After
|
||||||
import org.junit.Assert.assertNotNull
|
import org.junit.Assert.assertNotNull
|
||||||
import org.junit.Ignore
|
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import java.sql.SQLException
|
import java.sql.SQLException
|
||||||
import java.util.Random
|
import java.util.Random
|
||||||
@ -84,7 +83,6 @@ import kotlin.test.assertEquals
|
|||||||
import kotlin.test.assertNull
|
import kotlin.test.assertNull
|
||||||
import kotlin.test.fail
|
import kotlin.test.fail
|
||||||
|
|
||||||
@Ignore("TODO JDK17: class cast exception")
|
|
||||||
class FinalityFlowTests : WithFinality {
|
class FinalityFlowTests : WithFinality {
|
||||||
companion object {
|
companion object {
|
||||||
private val CHARLIE = TestIdentity(CHARLIE_NAME, 90).party
|
private val CHARLIE = TestIdentity(CHARLIE_NAME, 90).party
|
||||||
|
@ -15,12 +15,10 @@ import net.corda.coretesting.internal.matchers.flow.willReturn
|
|||||||
import net.corda.testing.node.internal.InternalMockNetwork
|
import net.corda.testing.node.internal.InternalMockNetwork
|
||||||
import net.corda.testing.node.internal.TestStartedNode
|
import net.corda.testing.node.internal.TestStartedNode
|
||||||
import org.junit.AfterClass
|
import org.junit.AfterClass
|
||||||
import org.junit.Ignore
|
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import kotlin.reflect.KClass
|
import kotlin.reflect.KClass
|
||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
|
|
||||||
@Ignore("TODO JDK17: class cast exception")
|
|
||||||
class ReceiveMultipleFlowTests : WithMockNet {
|
class ReceiveMultipleFlowTests : WithMockNet {
|
||||||
companion object {
|
companion object {
|
||||||
private val classMockNet = InternalMockNetwork()
|
private val classMockNet = InternalMockNetwork()
|
||||||
|
@ -30,11 +30,9 @@ import org.assertj.core.api.Assertions.assertThat
|
|||||||
import org.assertj.core.api.Assertions.assertThatExceptionOfType
|
import org.assertj.core.api.Assertions.assertThatExceptionOfType
|
||||||
import org.junit.After
|
import org.junit.After
|
||||||
import org.junit.Before
|
import org.junit.Before
|
||||||
import org.junit.Ignore
|
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
|
|
||||||
@Ignore("TODO JDK17: class cast exception")
|
|
||||||
class NetworkParametersResolutionTest {
|
class NetworkParametersResolutionTest {
|
||||||
private lateinit var defaultParams: NetworkParameters
|
private lateinit var defaultParams: NetworkParameters
|
||||||
private lateinit var params2: NetworkParameters
|
private lateinit var params2: NetworkParameters
|
||||||
|
@ -45,7 +45,6 @@ import kotlin.test.assertNotNull
|
|||||||
import kotlin.test.assertNull
|
import kotlin.test.assertNull
|
||||||
|
|
||||||
// DOCSTART 3
|
// DOCSTART 3
|
||||||
@Ignore("TODO JDK17: class cast exception")
|
|
||||||
class ResolveTransactionsFlowTest {
|
class ResolveTransactionsFlowTest {
|
||||||
private lateinit var mockNet: MockNetwork
|
private lateinit var mockNet: MockNetwork
|
||||||
private lateinit var notaryNode: StartedMockNode
|
private lateinit var notaryNode: StartedMockNode
|
||||||
@ -259,7 +258,7 @@ class ResolveTransactionsFlowTest {
|
|||||||
|
|
||||||
// Used for checking larger chains resolve correctly. Note that this takes a long time to run, and so is not suitable for a CI gate.
|
// Used for checking larger chains resolve correctly. Note that this takes a long time to run, and so is not suitable for a CI gate.
|
||||||
@Test(timeout=300_000)
|
@Test(timeout=300_000)
|
||||||
@Ignore
|
@Ignore
|
||||||
fun `Can resolve large chain of transactions`() {
|
fun `Can resolve large chain of transactions`() {
|
||||||
val txToResolve = makeLargeTransactionChain(2500)
|
val txToResolve = makeLargeTransactionChain(2500)
|
||||||
val p = TestFlow(txToResolve, megaCorp)
|
val p = TestFlow(txToResolve, megaCorp)
|
||||||
|
@ -24,7 +24,6 @@ import net.corda.testing.node.internal.TestStartedNode
|
|||||||
import net.corda.testing.node.internal.startFlow
|
import net.corda.testing.node.internal.startFlow
|
||||||
import org.junit.After
|
import org.junit.After
|
||||||
import org.junit.Before
|
import org.junit.Before
|
||||||
import org.junit.Ignore
|
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import java.io.ByteArrayOutputStream
|
import java.io.ByteArrayOutputStream
|
||||||
import java.nio.charset.StandardCharsets.UTF_8
|
import java.nio.charset.StandardCharsets.UTF_8
|
||||||
@ -65,7 +64,6 @@ private fun updateAttachment(attachmentId: SecureHash, data: ByteArray) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore("TODO JDK17: class cast exception")
|
|
||||||
class AttachmentSerializationTest {
|
class AttachmentSerializationTest {
|
||||||
private lateinit var mockNet: InternalMockNetwork
|
private lateinit var mockNet: InternalMockNetwork
|
||||||
private lateinit var server: TestStartedNode
|
private lateinit var server: TestStartedNode
|
||||||
|
@ -20,7 +20,6 @@ object EmptyWhitelist : ClassWhitelist {
|
|||||||
override fun hasListed(type: Class<*>): Boolean = false
|
override fun hasListed(type: Class<*>): Boolean = false
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore("TODO JDK17: class cast exception")
|
|
||||||
class KotlinUtilsTest {
|
class KotlinUtilsTest {
|
||||||
@Rule
|
@Rule
|
||||||
@JvmField
|
@JvmField
|
||||||
@ -63,6 +62,7 @@ class KotlinUtilsTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout=300_000)
|
@Test(timeout=300_000)
|
||||||
|
@Ignore("TODO JDK17:Fixme serializable lambda issue")
|
||||||
fun `checkpointing a transient property with capturing lambda`() {
|
fun `checkpointing a transient property with capturing lambda`() {
|
||||||
val original = CapturingTransientProperty("Hello")
|
val original = CapturingTransientProperty("Hello")
|
||||||
val originalVal = original.transientVal
|
val originalVal = original.transientVal
|
||||||
|
Loading…
Reference in New Issue
Block a user