Author: manik.surtani(a)jboss.com
Date: 2009-03-05 10:28:11 -0500 (Thu, 05 Mar 2009)
New Revision: 7858
Modified:
core/branches/flat/src/test/java/org/horizon/loader/AbstractCacheStoreTest.java
Log:
Fixed vararg warning
Modified: core/branches/flat/src/test/java/org/horizon/loader/AbstractCacheStoreTest.java
===================================================================
---
core/branches/flat/src/test/java/org/horizon/loader/AbstractCacheStoreTest.java 2009-03-05
13:47:19 UTC (rev 7857)
+++
core/branches/flat/src/test/java/org/horizon/loader/AbstractCacheStoreTest.java 2009-03-05
15:28:11 UTC (rev 7858)
@@ -1,13 +1,12 @@
package org.horizon.loader;
-import static org.easymock.classextension.EasyMock.*;
+import static org.easymock.classextension.EasyMock.createMock;
import org.horizon.util.ReflectionUtil;
import org.horizon.util.concurrent.WithinThreadExecutor;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
-import java.lang.reflect.Method;
import java.util.concurrent.ExecutorService;
/**
@@ -24,9 +23,9 @@
@BeforeTest
public void setUp() throws NoSuchMethodException {
- cs = createMock(AbstractCacheStore.class,new Method[] {
AbstractCacheStore.class.getMethod("clear", null) });
+ cs = createMock(AbstractCacheStore.class,
AbstractCacheStore.class.getMethod("clear"));
cfg = new AbstractCacheStoreConfig();
- cs.init(cfg,null,null);
+ cs.init(cfg, null, null);
}
@AfterTest