Skip to content

Commit

Permalink
#807 added isReset() method to AbstractPluginIT (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkMahler authored Feb 25, 2025
1 parent ed5e944 commit 4700977
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,16 @@ private void startStore(ITConfiguration configuration) {
StoreFactory storeFactory = new StoreFactory(pluginRepository.getStorePluginRepository(), artifactProvider);
store = storeFactory.getStore(configuration.store(), () -> TEST_STORE_DIRECTORY);
store.start();
store.reset();
if (isReset()) {
store.reset();
}
}

/**
* Determines if the store shall be reset before each test method.
*/
protected boolean isReset() {
return true;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ class JavaRuntimePT extends AbstractJavaPluginIT {
public static final Class<?>[] PRIMITIVE_TYPES = new Class<?>[] { void.class, boolean.class, short.class, int.class, float.class, double.class,
long.class };

@Override
protected boolean isReset() {
return false;
}

/**
* Scans the rt.jar of the Java Runtime Environment specified by the environment
* variable java.home.
Expand Down

0 comments on commit 4700977

Please sign in to comment.