From fc1e04a3b34c25a70747d0291121164387026b61 Mon Sep 17 00:00:00 2001 From: Fausto Spoto Date: Sat, 18 May 2024 09:19:12 +0200 Subject: [PATCH] Fixed test --- .../src/test/java/io/hotmoka/tests/Basic.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/io-hotmoka-tests/src/test/java/io/hotmoka/tests/Basic.java b/io-hotmoka-tests/src/test/java/io/hotmoka/tests/Basic.java index 50a210d5a..743b86801 100644 --- a/io-hotmoka-tests/src/test/java/io/hotmoka/tests/Basic.java +++ b/io-hotmoka-tests/src/test/java/io/hotmoka/tests/Basic.java @@ -53,7 +53,7 @@ import io.hotmoka.node.api.values.BigIntegerValue; import io.hotmoka.node.api.values.StorageReference; import io.hotmoka.node.api.values.StringValue; -import io.hotmoka.node.local.DeserializationException; +import io.hotmoka.node.local.internal.store.UpdatesExtractionException; import io.takamaka.code.constants.Constants; /** @@ -325,11 +325,11 @@ void listCreation() throws CodeExecutionException, TransactionException, Transac runInstanceNonVoidMethodCallTransaction(master, _200_000, classpath, MethodSignatures.ofNonVoid(WITH_LIST, "toString", StorageTypes.STRING), wl)); } - @Test @DisplayName("new WithList().illegal() throws TransactionException since DeserializationError") - void deserializationError() throws CodeExecutionException, TransactionException, TransactionRejectedException, InvalidKeyException, SignatureException, NodeException, TimeoutException, InterruptedException { + @Test @DisplayName("new WithList().illegal() throws TransactionException since UpdatesExtractionException") + void updatesExtractionException() throws CodeExecutionException, TransactionException, TransactionRejectedException, InvalidKeyException, SignatureException, NodeException, TimeoutException, InterruptedException { StorageReference wl = addConstructorCallTransaction(key, master, _200_000, ONE, classpath, ConstructorSignatures.of(WITH_LIST)); - throwsTransactionExceptionWithCause(DeserializationException.class, () -> + throwsTransactionExceptionWithCause(UpdatesExtractionException.class, () -> addInstanceVoidMethodCallTransaction(key, master, _200_000, ONE, classpath, MethodSignatures.ofVoid(WITH_LIST, "illegal"), wl) ); }