protected static Test suite() {
return new TestSuite(ConcurrentAccessTest.class);
}
public void testConcurrentAccess() throws Throwable {
TestRunnable client1 = new CacheClient(filterset1);
TestRunnable client2 = new CacheClient(filterset2);
TestRunnable client3 = new CacheClient(filterset1);
TestRunnable[] trs = new TestRunnable[] { client1, client2, client3 };
MultiThreadedTestRunner mttr = new MultiThreadedTestRunner(trs);
mttr.runTestRunnables();
}