Skip to content

Commit

Permalink
Update TestLoadAdapter.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ghareeb-falazi committed Sep 3, 2024
1 parent d01a6a8 commit 00f11b3
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import blockchains.iaas.uni.stuttgart.de.api.connectionprofiles.AbstractConnectionProfile;
import blockchains.iaas.uni.stuttgart.de.api.interfaces.BlockchainAdapter;
import blockchains.iaas.uni.stuttgart.de.connectionprofiles.ConnectionProfilesManager;
import blockchains.iaas.uni.stuttgart.de.management.BlockchainManager;
import blockchains.iaas.uni.stuttgart.de.management.BlockchainPluginManager;
import lombok.extern.log4j.Log4j2;
import org.junit.jupiter.api.*;
Expand Down Expand Up @@ -132,7 +131,11 @@ public void testLoadConnectionProfile() throws IOException, URISyntaxException,
private void clearPluginDirectory() {
Path path = pluginManager.getPluginsPath();
final File[] files = path.toFile().listFiles();
for (File f : files) f.delete();
if (files != null) {
for (File f : files) {
f.delete();
}
}
}

}

0 comments on commit 00f11b3

Please sign in to comment.