*/
package org.opendaylight.controller.config.manager.testingservices.parallelapsp.test;
+import java.io.Closeable;
+import java.io.IOException;
+import java.util.concurrent.Executor;
+import javax.management.ObjectName;
import org.junit.Before;
import org.junit.Test;
import org.opendaylight.controller.config.api.DynamicMBeanWithInstance;
import org.opendaylight.controller.config.spi.Module;
import org.opendaylight.controller.config.util.ConfigTransactionJMXClient;
-import javax.management.ObjectName;
-import java.io.Closeable;
-import java.io.IOException;
-import java.util.concurrent.Executor;
-
public class MockedDependenciesTest extends AbstractParallelAPSPTest {
private final String threadPoolImplementationName = "mockedthreadpool";
mockedThreadPoolConfigFactory));
}
- public static interface MockedTestingThreadPoolConfigMXBean extends
+ public interface MockedTestingThreadPoolConfigMXBean extends
TestingThreadPoolConfigMXBean {
- public void setThreadCount(int threadCount);
+ void setThreadCount(int threadCount);
}
public static class MockedThreadPoolModule implements Module,
}
+ @Override
+ public boolean canReuse(Module oldModule) {
+ return false;
+ }
+
@Override
public Closeable getInstance() {
return new MockedThreadPool(threadCount);