diff options
Diffstat (limited to 'src/test/java/org/gnunet/dht/DHTTest.java')
-rw-r--r-- | src/test/java/org/gnunet/dht/DHTTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/org/gnunet/dht/DHTTest.java b/src/test/java/org/gnunet/dht/DHTTest.java index f77bd70..676b5bc 100644 --- a/src/test/java/org/gnunet/dht/DHTTest.java +++ b/src/test/java/org/gnunet/dht/DHTTest.java | |||
@@ -42,7 +42,7 @@ public class DHTTest extends TestingFixture { | |||
42 | 42 | ||
43 | final DistributedHashTable dht = new DistributedHashTable(ts.getConfiguration()); | 43 | final DistributedHashTable dht = new DistributedHashTable(ts.getConfiguration()); |
44 | dht.put(new HashCode("gnj-test"), new byte[]{1, 2, 3}, 1, EnumSet.noneOf(RouteOption.class), | 44 | dht.put(new HashCode("gnj-test"), new byte[]{1, 2, 3}, 1, EnumSet.noneOf(RouteOption.class), |
45 | BlockType.TEST.val, RelativeTime.HOUR.toAbsolute(), RelativeTime.FOREVER, new Continuation() { | 45 | BlockType.TEST.val, RelativeTime.HOUR.toAbsolute(), new Continuation() { |
46 | @Override | 46 | @Override |
47 | public void cont(boolean success) { | 47 | public void cont(boolean success) { |
48 | putFinished.set(true); | 48 | putFinished.set(true); |
@@ -67,7 +67,7 @@ public class DHTTest extends TestingFixture { | |||
67 | 67 | ||
68 | final DistributedHashTable dht = new DistributedHashTable(ts.getConfiguration()); | 68 | final DistributedHashTable dht = new DistributedHashTable(ts.getConfiguration()); |
69 | dht.put(hash1, data, 1, EnumSet.noneOf(RouteOption.class), | 69 | dht.put(hash1, data, 1, EnumSet.noneOf(RouteOption.class), |
70 | BlockType.TEST.val, RelativeTime.HOUR.toAbsolute(), RelativeTime.FOREVER, new Continuation() { | 70 | BlockType.TEST.val, RelativeTime.HOUR.toAbsolute(), new Continuation() { |
71 | @Override | 71 | @Override |
72 | public void cont(boolean success) { | 72 | public void cont(boolean success) { |
73 | dht.startGet(RelativeTime.FOREVER, BlockType.TEST.val, hash1, 1, EnumSet.noneOf(RouteOption.class), null, new ResultCallback() { | 73 | dht.startGet(RelativeTime.FOREVER, BlockType.TEST.val, hash1, 1, EnumSet.noneOf(RouteOption.class), null, new ResultCallback() { |
@@ -114,7 +114,7 @@ public class DHTTest extends TestingFixture { | |||
114 | Scheduler.addDelayed(new RelativeTime(50), new Scheduler.Task() { | 114 | Scheduler.addDelayed(new RelativeTime(50), new Scheduler.Task() { |
115 | @Override | 115 | @Override |
116 | public void run(Scheduler.RunContext ctx) { | 116 | public void run(Scheduler.RunContext ctx) { |
117 | dht.put(hash, data1, 1, EnumSet.noneOf(RouteOption.class), BlockType.TEST.val, RelativeTime.HOUR.toAbsolute(), RelativeTime.FOREVER, null); | 117 | dht.put(hash, data1, 1, EnumSet.noneOf(RouteOption.class), BlockType.TEST.val, RelativeTime.HOUR.toAbsolute(), null); |
118 | } | 118 | } |
119 | }); | 119 | }); |
120 | 120 | ||
@@ -122,7 +122,7 @@ public class DHTTest extends TestingFixture { | |||
122 | Scheduler.addDelayed(new RelativeTime(100), new Scheduler.Task() { | 122 | Scheduler.addDelayed(new RelativeTime(100), new Scheduler.Task() { |
123 | @Override | 123 | @Override |
124 | public void run(Scheduler.RunContext ctx) { | 124 | public void run(Scheduler.RunContext ctx) { |
125 | dht.put(hash, data2, 1, EnumSet.noneOf(RouteOption.class), BlockType.TEST.val, RelativeTime.HOUR.toAbsolute(), RelativeTime.FOREVER, null); | 125 | dht.put(hash, data2, 1, EnumSet.noneOf(RouteOption.class), BlockType.TEST.val, RelativeTime.HOUR.toAbsolute(), null); |
126 | } | 126 | } |
127 | }); | 127 | }); |
128 | 128 | ||