Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.osgi.tests/bundles_src/storage.hooks.a/org/eclipse/osgi/tests/hooks/framework/storage/a/TestHookConfigurator.java')
-rw-r--r--bundles/org.eclipse.osgi.tests/bundles_src/storage.hooks.a/org/eclipse/osgi/tests/hooks/framework/storage/a/TestHookConfigurator.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi.tests/bundles_src/storage.hooks.a/org/eclipse/osgi/tests/hooks/framework/storage/a/TestHookConfigurator.java b/bundles/org.eclipse.osgi.tests/bundles_src/storage.hooks.a/org/eclipse/osgi/tests/hooks/framework/storage/a/TestHookConfigurator.java
index 3f68e6690..ec927f627 100644
--- a/bundles/org.eclipse.osgi.tests/bundles_src/storage.hooks.a/org/eclipse/osgi/tests/hooks/framework/storage/a/TestHookConfigurator.java
+++ b/bundles/org.eclipse.osgi.tests/bundles_src/storage.hooks.a/org/eclipse/osgi/tests/hooks/framework/storage/a/TestHookConfigurator.java
@@ -39,7 +39,10 @@ public class TestHookConfigurator implements HookConfigurator {
@Override
public void load(Object loadContext, DataInputStream is) {
- // Nothing.
+ if (TestHookConfigurator.failLoad) {
+ // will force a clean
+ throw new IllegalArgumentException();
+ }
}
@Override
@@ -106,6 +109,7 @@ public class TestHookConfigurator implements HookConfigurator {
public static volatile boolean createStorageHookCalled;
public static volatile boolean invalid;
+ public static volatile boolean failLoad;
public static volatile boolean invalidFactoryClass;
public static volatile boolean validateCalled;
public static volatile boolean deletingGenerationCalled;

Back to the top