Author: manik.surtani(a)jboss.com
Date: 2008-06-26 13:55:25 -0400 (Thu, 26 Jun 2008)
New Revision: 6068
Modified:
core/branches/2.2.X/src/test/java/org/jboss/cache/optimistic/ConcurrentTransactionTest.java
Log:
Minor corrections
Modified:
core/branches/2.2.X/src/test/java/org/jboss/cache/optimistic/ConcurrentTransactionTest.java
===================================================================
---
core/branches/2.2.X/src/test/java/org/jboss/cache/optimistic/ConcurrentTransactionTest.java 2008-06-26
17:40:47 UTC (rev 6067)
+++
core/branches/2.2.X/src/test/java/org/jboss/cache/optimistic/ConcurrentTransactionTest.java 2008-06-26
17:55:25 UTC (rev 6068)
@@ -10,12 +10,12 @@
import org.jboss.cache.Fqn;
import org.jboss.cache.InvocationContext;
import org.jboss.cache.NodeSPI;
-import org.jboss.cache.util.TestingUtil;
import org.jboss.cache.commands.VisitableCommand;
import org.jboss.cache.commands.tx.OptimisticPrepareCommand;
import org.jboss.cache.interceptors.OptimisticCreateIfNotExistsInterceptor;
import org.jboss.cache.interceptors.TxInterceptor;
import org.jboss.cache.interceptors.base.CommandInterceptor;
+import org.jboss.cache.util.TestingUtil;
import static org.testng.AssertJUnit.*;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
@@ -258,6 +258,7 @@
final String fastThreadName = "FAST";
CommandInterceptor slowdownInterceptor = new CommandInterceptor()
{
+ @Override
public Object handleDefault(InvocationContext ctx, VisitableCommand command)
throws Throwable
{
if (Thread.currentThread().getName().equals(slowThreadName))
@@ -294,7 +295,8 @@
final String fastThreadName = "FAST";
CommandInterceptor slowdownInterceptor = new CommandInterceptor()
{
- public Object hanldeDefault(InvocationContext ctx, VisitableCommand command)
throws Throwable
+ @Override
+ public Object handleDefault(InvocationContext ctx, VisitableCommand command)
throws Throwable
{
if (Thread.currentThread().getName().equals(slowThreadName) &&
ctx.getMethodCall().getMethodId() == OptimisticPrepareCommand.METHOD_ID)
{
Show replies by date