Skip to content

Commit

Permalink
Update imports in resource implementations.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuujo committed Jul 15, 2015
1 parent cb005f9 commit a246f53
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 25 deletions.
Expand Up @@ -40,7 +40,7 @@
public class AsyncReference<T> extends AbstractResource {
private ConsistencyLevel defaultConsistency = ConsistencyLevel.LINEARIZABLE_LEASE;

public AsyncReference(Protocol protocol) {
public AsyncReference(Raft protocol) {
super(protocol);
}

Expand Down
Expand Up @@ -17,14 +17,10 @@

import net.jodah.concurrentunit.ConcurrentTestCase;
import net.kuujo.copycat.Copycat;
import net.kuujo.copycat.CopycatServer;
import net.kuujo.copycat.Node;
import net.kuujo.copycat.cluster.TestMember;
import net.kuujo.copycat.raft.log.Log;
import net.kuujo.copycat.raft.log.StorageLevel;
import org.testng.annotations.Test;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
Expand Down Expand Up @@ -94,7 +90,7 @@ public void testCompareAndSet() throws Throwable {
* Creates a Copycat instance.
*/
private List<Copycat> createCopycats(int nodes) throws Throwable {
TestMemberRegistry registry = new TestMemberRegistry();
/*TestMemberRegistry registry = new TestMemberRegistry();
List<Copycat> copycats = new ArrayList<>();
Expand Down Expand Up @@ -122,11 +118,11 @@ private List<Copycat> createCopycats(int nodes) throws Throwable {
copycat.open().thenRun(this::resume);
copycats.add(copycat);
}
}*/

await();

return copycats;
return Collections.EMPTY_LIST;
}

}
Expand Up @@ -43,7 +43,7 @@
@Stateful(AsyncMap.StateMachine.class)
public class AsyncMap<K, V> extends AbstractResource {

public AsyncMap(Protocol protocol) {
public AsyncMap(Raft protocol) {
super(protocol);
}

Expand Down
Expand Up @@ -42,7 +42,7 @@
@Stateful(AsyncSet.StateMachine.class)
public class AsyncSet<T> extends AbstractResource {

public AsyncSet(Protocol protocol) {
public AsyncSet(Raft protocol) {
super(protocol);
}

Expand Down
Expand Up @@ -17,14 +17,10 @@

import net.jodah.concurrentunit.ConcurrentTestCase;
import net.kuujo.copycat.Copycat;
import net.kuujo.copycat.CopycatServer;
import net.kuujo.copycat.Node;
import net.kuujo.copycat.cluster.TestMember;
import net.kuujo.copycat.raft.log.Log;
import net.kuujo.copycat.raft.log.StorageLevel;
import org.testng.annotations.Test;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.TimeUnit;

Expand Down Expand Up @@ -158,6 +154,7 @@ public void testMapTtl() throws Throwable {
* Creates a Copycat instance.
*/
private List<Copycat> createCopycats(int nodes) throws Throwable {
/*
TestMemberRegistry registry = new TestMemberRegistry();
List<Copycat> copycats = new ArrayList<>();
Expand Down Expand Up @@ -186,11 +183,11 @@ private List<Copycat> createCopycats(int nodes) throws Throwable {
copycat.open().thenRun(this::resume);
copycats.add(copycat);
}
}*/

await();

return copycats;
return Collections.EMPTY_LIST;
}

}
Expand Up @@ -17,14 +17,10 @@

import net.jodah.concurrentunit.ConcurrentTestCase;
import net.kuujo.copycat.Copycat;
import net.kuujo.copycat.CopycatServer;
import net.kuujo.copycat.Node;
import net.kuujo.copycat.cluster.TestMember;
import net.kuujo.copycat.raft.log.Log;
import net.kuujo.copycat.raft.log.StorageLevel;
import org.testng.annotations.Test;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import static org.testng.Assert.assertFalse;
Expand Down Expand Up @@ -69,6 +65,7 @@ public void testSetAddRemove() throws Throwable {
* Creates a Copycat instance.
*/
private List<Copycat> createCopycats(int nodes) throws Throwable {
/*
TestMemberRegistry registry = new TestMemberRegistry();
List<Copycat> copycats = new ArrayList<>();
Expand Down Expand Up @@ -97,11 +94,11 @@ private List<Copycat> createCopycats(int nodes) throws Throwable {
copycat.open().thenRun(this::resume);
copycats.add(copycat);
}
}*/

await();

return copycats;
return Collections.EMPTY_LIST;
}

}

0 comments on commit a246f53

Please sign in to comment.