removed extra unused excheptions

Signed-off-by: fraVlaca <ocsenarf@outlook.com>
This commit is contained in:
fraVlaca 2021-09-06 12:07:19 +01:00
parent 12a9064e26
commit 1007204f9d
2 changed files with 6 additions and 10 deletions

View file

@ -7,7 +7,6 @@ package org.hyperledger.fabric.samples.assettransfer;
import java.util.ArrayList;
import java.util.List;
import java.io.IOException;
import org.hyperledger.fabric.contract.Context;
import org.hyperledger.fabric.contract.ContractInterface;

View file

@ -24,9 +24,6 @@ import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.mockito.InOrder;
import com.fasterxml.jackson.core.JsonProcessingException;
import java.io.IOException;
public final class AssetTransferTest {
private final class MockKeyValue implements KeyValue {
@ -112,7 +109,7 @@ public final class AssetTransferTest {
class InvokeReadAssetTransaction {
@Test
public void whenAssetExists() throws JsonProcessingException, IOException {
public void whenAssetExists() {
AssetTransfer contract = new AssetTransfer();
Context ctx = mock(Context.class);
ChaincodeStub stub = mock(ChaincodeStub.class);
@ -144,7 +141,7 @@ public final class AssetTransferTest {
}
@Test
void invokeInitLedgerTransaction() throws JsonProcessingException {
void invokeInitLedgerTransaction() {
AssetTransfer contract = new AssetTransfer();
Context ctx = mock(Context.class);
ChaincodeStub stub = mock(ChaincodeStub.class);
@ -183,7 +180,7 @@ public final class AssetTransferTest {
}
@Test
public void whenAssetDoesNotExist() throws JsonProcessingException {
public void whenAssetDoesNotExist() {
AssetTransfer contract = new AssetTransfer();
Context ctx = mock(Context.class);
ChaincodeStub stub = mock(ChaincodeStub.class);
@ -197,7 +194,7 @@ public final class AssetTransferTest {
}
@Test
void invokeGetAllAssetsTransaction() throws JsonProcessingException, IOException {
void invokeGetAllAssetsTransaction() {
AssetTransfer contract = new AssetTransfer();
Context ctx = mock(Context.class);
ChaincodeStub stub = mock(ChaincodeStub.class);
@ -219,7 +216,7 @@ public final class AssetTransferTest {
class TransferAssetTransaction {
@Test
public void whenAssetExists() throws JsonProcessingException {
public void whenAssetExists() {
AssetTransfer contract = new AssetTransfer();
Context ctx = mock(Context.class);
ChaincodeStub stub = mock(ChaincodeStub.class);
@ -254,7 +251,7 @@ public final class AssetTransferTest {
class UpdateAssetTransaction {
@Test
public void whenAssetExists() throws JsonProcessingException {
public void whenAssetExists() {
AssetTransfer contract = new AssetTransfer();
Context ctx = mock(Context.class);
ChaincodeStub stub = mock(ChaincodeStub.class);