[kune-commits] r1477 - trunk/src/test/java/cc/kune/core/server/manager
Vicente J. Ruiz Jurado
vjrj_ at ourproject.org
Fri Jul 29 23:04:16 CEST 2011
Author: vjrj_
Date: 2011-07-29 23:04:15 +0200 (Fri, 29 Jul 2011)
New Revision: 1477
Modified:
trunk/src/test/java/cc/kune/core/server/manager/ContainerManagerDefaultTest.java
trunk/src/test/java/cc/kune/core/server/manager/ContentManagerDefaultTest.java
Log:
Test fixed
Modified: trunk/src/test/java/cc/kune/core/server/manager/ContainerManagerDefaultTest.java
===================================================================
--- trunk/src/test/java/cc/kune/core/server/manager/ContainerManagerDefaultTest.java 2011-07-29 20:59:39 UTC (rev 1476)
+++ trunk/src/test/java/cc/kune/core/server/manager/ContainerManagerDefaultTest.java 2011-07-29 21:04:15 UTC (rev 1477)
@@ -8,6 +8,7 @@
import org.junit.Test;
import cc.kune.core.client.errors.AccessViolationException;
+import cc.kune.core.client.errors.MoveOnSameContainerException;
import cc.kune.core.client.errors.NameInUseException;
import cc.kune.core.server.PersistencePreLoadedDataTest;
import cc.kune.docs.shared.DocsConstants;
@@ -65,11 +66,10 @@
containerManager.moveContainer(folderToMove, newParentFolder);
}
- @Test
+ @Test(expected = MoveOnSameContainerException.class)
public void testMoveFolderToSame() {
final Container folderToMove = createContainer(rootFolder);
containerManager.moveContainer(folderToMove, rootFolder);
- // Do nothing (in silence)
}
@Test
Modified: trunk/src/test/java/cc/kune/core/server/manager/ContentManagerDefaultTest.java
===================================================================
--- trunk/src/test/java/cc/kune/core/server/manager/ContentManagerDefaultTest.java 2011-07-29 20:59:39 UTC (rev 1476)
+++ trunk/src/test/java/cc/kune/core/server/manager/ContentManagerDefaultTest.java 2011-07-29 21:04:15 UTC (rev 1477)
@@ -27,6 +27,7 @@
import org.junit.Ignore;
import org.junit.Test;
+import cc.kune.core.client.errors.MoveOnSameContainerException;
import cc.kune.core.client.errors.NameInUseException;
import cc.kune.core.server.PersistencePreLoadedDataTest;
import cc.kune.core.server.manager.impl.SearchResult;
@@ -118,6 +119,12 @@
assertEquals(1, search.getSize());
}
+ @Test(expected = MoveOnSameContainerException.class)
+ public void testMoveFolderToSame() {
+ final Content content = createContent();
+ contentManager.moveContent(content, content.getContainer());
+ }
+
@Ignore
@Test
public void testtMimeSearch() {
More information about the kune-commits
mailing list