[exo-jcr-commits] exo-jcr SVN: r4457 - kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue May 31 04:15:27 EDT 2011


Author: tolusha
Date: 2011-05-31 04:15:27 -0400 (Tue, 31 May 2011)
New Revision: 4457

Added:
   kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container/TestScopingObjectName.java
Modified:
   kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container/TestPortalContainer.java
Log:
EXOJCR-1365: Move test to separate class

Modified: kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container/TestPortalContainer.java
===================================================================
--- kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container/TestPortalContainer.java	2011-05-31 07:18:51 UTC (rev 4456)
+++ kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container/TestPortalContainer.java	2011-05-31 08:15:27 UTC (rev 4457)
@@ -32,18 +32,6 @@
 public class TestPortalContainer extends AbstractTestContainer
 {
    
-   public void testHasScopingObjectName()
-   {
-      URL rootURL = getClass().getResource("empty-config.xml");
-      URL portalURL = getClass().getResource("empty-config.xml");
-      assertNotNull(rootURL);
-      assertNotNull(portalURL);
-      //
-      new ContainerBuilder().withRoot(rootURL).withPortal(portalURL).build();
-      assertNull(RootContainer.getInstance().getScopingObjectName());
-      assertNotNull(PortalContainer.getInstance().getScopingObjectName());
-   }
-
    public void testInitValues()
    {
       createRootContainer("portal-container-config-with-settings.xml");

Added: kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container/TestScopingObjectName.java
===================================================================
--- kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container/TestScopingObjectName.java	                        (rev 0)
+++ kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container/TestScopingObjectName.java	2011-05-31 08:15:27 UTC (rev 4457)
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2009 eXo Platform SAS.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ */
+package org.exoplatform.container;
+
+import org.exoplatform.container.jmx.AbstractTestContainer;
+import org.exoplatform.container.support.ContainerBuilder;
+
+import java.net.URL;
+
+/**
+ * @author <a href="anatoliy.bazko at exoplatform.com">Anatoliy Bazko</a>
+ * @version $Id: TestScopingObjectName.java 34360 2009-07-22 23:58:59Z tolusha $
+ */
+public class TestScopingObjectName extends AbstractTestContainer
+{
+   public void testHasScopingObjectName()
+   {
+      URL rootURL = getClass().getResource("empty-config.xml");
+      URL portalURL = getClass().getResource("empty-config.xml");
+      assertNotNull(rootURL);
+      assertNotNull(portalURL);
+      //
+      new ContainerBuilder().withRoot(rootURL).withPortal(portalURL).build();
+      assertNull(RootContainer.getInstance().getScopingObjectName());
+      assertNotNull(PortalContainer.getInstance().getScopingObjectName());
+   }
+
+}



More information about the exo-jcr-commits mailing list