Permalink
Browse files

In-progress test.

  • Loading branch information...
1 parent 7d808f5 commit f5d54a585a6d4a6030b6908f475bbd4e912d379f @asgeirn committed Oct 24, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/test/java/com/asgeirnilsen/blog/LockingCircularBufferTest.java
@@ -21,7 +21,7 @@
@Test
public void testWait() throws InterruptedException, ExecutionException, TimeoutException {
final ExecutorService executor = Executors.newSingleThreadExecutor();
- final CircularBuffer<Integer> buffer = new LockingCircularBuffer<Integer>(2, new ReentrantLock());
+ final CircularBuffer<Integer> buffer = new LockingCircularBuffer<Integer>(2, new ReentrantLock(true));
final AtomicInteger i = buffer.index();
Future<Integer> result = executor.submit(new Callable<Integer>() {
@Override
@@ -34,4 +34,8 @@ public Integer call() throws Exception {
assertThat(result.get(1, SECONDS), is(42));
}
+ @Test
+ public void manyReaders() throws Exception {
+
+ }
}

0 comments on commit f5d54a5

Please sign in to comment.