Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
spoto committed May 18, 2024
1 parent 2da7c8b commit fc1e04a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions io-hotmoka-tests/src/test/java/io/hotmoka/tests/Basic.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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)
);
}
Expand Down

0 comments on commit fc1e04a

Please sign in to comment.