summaryrefslogtreecommitdiff
path: root/same/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'same/src/test/java')
-rw-r--r--same/src/test/java/com/orbekk/util/DelayedOperationTest.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/same/src/test/java/com/orbekk/util/DelayedOperationTest.java b/same/src/test/java/com/orbekk/util/DelayedOperationTest.java
index b15830f..b65ceed 100644
--- a/same/src/test/java/com/orbekk/util/DelayedOperationTest.java
+++ b/same/src/test/java/com/orbekk/util/DelayedOperationTest.java
@@ -6,20 +6,19 @@ import org.junit.Test;
public class DelayedOperationTest {
@Test public void initialOperationStatus() {
- DelayedOperation<String> operation = new DelayedOperation<String>("NotFinished");
+ DelayedOperation operation = new DelayedOperation();
assertFalse(operation.isDone());
}
@Test public void completedOperationReturns() {
- DelayedOperation<String> operation = new DelayedOperation<String>("Test");
+ DelayedOperation operation = new DelayedOperation();
operation.complete(DelayedOperation.Status.createOk());
assertTrue(operation.isDone());
assertEquals(DelayedOperation.Status.createOk(), operation.getStatus());
}
@Test public void concurrentTest() throws Exception {
- final DelayedOperation<String> operation =
- new DelayedOperation<String>("ConcurrentTest");
+ final DelayedOperation operation = new DelayedOperation();
Thread t = new Thread(new Runnable() {
@Override