Author: manik.surtani(a)jboss.com
Date: 2007-10-21 06:03:05 -0400 (Sun, 21 Oct 2007)
New Revision: 4658
Modified:
core/trunk/src/test/java/org/jboss/cache/optimistic/NodeInterceptorGetChildrenNamesTest.java
Log:
Fixed test
Modified:
core/trunk/src/test/java/org/jboss/cache/optimistic/NodeInterceptorGetChildrenNamesTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/optimistic/NodeInterceptorGetChildrenNamesTest.java 2007-10-20
20:36:37 UTC (rev 4657)
+++
core/trunk/src/test/java/org/jboss/cache/optimistic/NodeInterceptorGetChildrenNamesTest.java 2007-10-21
10:03:05 UTC (rev 4658)
@@ -1,14 +1,5 @@
package org.jboss.cache.optimistic;
-import static org.testng.AssertJUnit.assertEquals;
-import static org.testng.AssertJUnit.assertNotNull;
-import static org.testng.AssertJUnit.assertTrue;
-import static org.testng.AssertJUnit.fail;
-import java.util.Iterator;
-
-import javax.transaction.Transaction;
-import javax.transaction.TransactionManager;
-
import org.jboss.cache.CacheImpl;
import org.jboss.cache.Fqn;
import org.jboss.cache.interceptors.Interceptor;
@@ -18,10 +9,17 @@
import org.jboss.cache.transaction.GlobalTransaction;
import org.jboss.cache.transaction.OptimisticTransactionEntry;
import org.jboss.cache.transaction.TransactionTable;
+import static org.testng.AssertJUnit.*;
+import org.testng.annotations.Test;
+import javax.transaction.Transaction;
+import javax.transaction.TransactionManager;
+import java.util.Iterator;
+
/**
* @author xenephon
*/
+@Test (groups = {"funcional"})
public class NodeInterceptorGetChildrenNamesTest extends AbstractOptimisticTestCase
{
public void testTransactionGetNamesMethod() throws Exception
@@ -205,7 +203,7 @@
//assert the removal has had no effect
assertEquals(1, cache.getChildrenNames("/one").size());
- assertNotNull(workspace.getNode(Fqn.fromString("/one")).getChild(new
Fqn<String>("two")));
+ assertNotNull(workspace.getNode(Fqn.fromString("/one/two")));
mgr.commit();
Show replies by date