Skip to content

Commit

Permalink
Make sure all of the CASMutator constructors are at least run once.
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin committed May 3, 2008
1 parent 7c7be67 commit 57ccff1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/java/net/spy/memcached/CASMutatorTest.java
Expand Up @@ -24,6 +24,11 @@ public Long getNewValue(Long current) {
mutator=new CASMutator<Long>(client, new LongTranscoder(), 50);
}

public void testDefaultConstructor() {
// Just validate that this doesn't throw an exception.
new CASMutator<Long>(client, new LongTranscoder());
}

public void testConcurrentCAS() throws Throwable {
int num=SyncThread.getDistinctResultCount(20, new Callable<Long>(){
public Long call() throws Exception {
Expand Down

0 comments on commit 57ccff1

Please sign in to comment.