|
8 | 8 | *
|
9 | 9 | * SPDX-License-Identifier: Apache-2.0
|
10 | 10 | *******************************************************************************/
|
11 |
| -package blockchains.iaas.uni.stuttgart.de.adaptation.adapters.ethereum; |
| 11 | +package blockchains.iaas.uni.stuttgart.de.adaptation; |
12 | 12 |
|
13 |
| -import blockchains.iaas.uni.stuttgart.de.adaptation.AdapterManager; |
14 | 13 | import blockchains.iaas.uni.stuttgart.de.api.IAdapterExtension;
|
15 | 14 | import blockchains.iaas.uni.stuttgart.de.api.interfaces.BlockchainAdapter;
|
16 | 15 | import blockchains.iaas.uni.stuttgart.de.api.model.LinearChainTransaction;
|
17 | 16 | import blockchains.iaas.uni.stuttgart.de.connectionprofiles.ConnectionProfilesManager;
|
18 | 17 | import blockchains.iaas.uni.stuttgart.de.management.BlockchainPluginManager;
|
19 |
| -import com.fasterxml.jackson.databind.ObjectMapper; |
20 |
| -import org.junit.jupiter.api.*; |
| 18 | +import org.junit.jupiter.api.AfterEach; |
| 19 | +import org.junit.jupiter.api.Assertions; |
| 20 | +import org.junit.jupiter.api.BeforeEach; |
| 21 | +import org.junit.jupiter.api.Test; |
21 | 22 | import org.pf4j.PluginState;
|
22 | 23 | import org.pf4j.PluginWrapper;
|
23 | 24 | import org.slf4j.Logger;
|
|
40 | 41 | import java.util.Objects;
|
41 | 42 | import java.util.concurrent.ExecutionException;
|
42 | 43 |
|
43 |
| -public class TestEthereumAdapter { |
| 44 | +public class TestLoadAdapter { |
44 | 45 | // Add -Dpf4j.pluginsDir=<plugin_storage_path> -DethereumPluginJarPath=<path_to_ethereum_plugin_jar>
|
45 | 46 |
|
46 |
| - private static final Logger log = LoggerFactory.getLogger(TestEthereumAdapter.class); |
| 47 | + private static final Logger log = LoggerFactory.getLogger(TestLoadAdapter.class); |
47 | 48 | private static final String NETWORK_NAME = "eth-0";
|
48 | 49 | private static final double REQUIRED_CONFIDENCE = 0.6;
|
49 | 50 | private final BlockchainPluginManager pluginManager = BlockchainPluginManager.getInstance();
|
@@ -103,7 +104,7 @@ public void testSendEthereumTransaction() throws IOException, URISyntaxException
|
103 | 104 | final String DEFAULT_CONNECTION_PROFILES_CONFIGURATION_FILE_NAME = "gatewayConfiguration.json";
|
104 | 105 |
|
105 | 106 | final File file = new File(Objects.requireNonNull(
|
106 |
| - TestEthereumAdapter.class.getClassLoader().getResource(DEFAULT_CONNECTION_PROFILES_CONFIGURATION_FILE_NAME)).toURI()); |
| 107 | + TestLoadAdapter.class.getClassLoader().getResource(DEFAULT_CONNECTION_PROFILES_CONFIGURATION_FILE_NAME)).toURI()); |
107 | 108 |
|
108 | 109 | ConnectionProfilesManager manager = ConnectionProfilesManager.getInstance();
|
109 | 110 | manager.resetConnectionProfiles();
|
|
0 commit comments