From do-not-reply at jboss.org Tue May 31 04:15:28 2011 Content-Type: multipart/mixed; boundary="===============3564801574203568329==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: exo-jcr-commits at lists.jboss.org Subject: [exo-jcr-commits] exo-jcr SVN: r4457 - kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/container. Date: Tue, 31 May 2011 04:15:27 -0400 Message-ID: <201105310815.p4V8FRfW030719@svn01.web.mwc.hst.phx2.redhat.com> --===============3564801574203568329== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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/containe= r/TestScopingObjectName.java Modified: kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/containe= r/TestPortalContainer.java Log: EXOJCR-1365: Move test to separate class Modified: kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/c= ontainer/TestPortalContainer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/contain= er/TestPortalContainer.java 2011-05-31 07:18:51 UTC (rev 4456) +++ kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/contain= er/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 =3D getClass().getResource("empty-config.xml"); - URL portalURL =3D 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/cont= ainer/TestScopingObjectName.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/contain= er/TestScopingObjectName.java (rev 0) +++ kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/contain= er/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 Anatoliy Bazko + * @version $Id: TestScopingObjectName.java 34360 2009-07-22 23:58:59Z tol= usha $ + */ +public class TestScopingObjectName extends AbstractTestContainer +{ + public void testHasScopingObjectName() + { + URL rootURL =3D getClass().getResource("empty-config.xml"); + URL portalURL =3D getClass().getResource("empty-config.xml"); + assertNotNull(rootURL); + assertNotNull(portalURL); + // + new ContainerBuilder().withRoot(rootURL).withPortal(portalURL).build= (); + assertNull(RootContainer.getInstance().getScopingObjectName()); + assertNotNull(PortalContainer.getInstance().getScopingObjectName()); + } + +} --===============3564801574203568329==--