[jboss-cvs] JBossAS SVN: r83553 - trunk/system/src/tests/org/jboss/test/server/profileservice/bootstrap.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jan 28 07:22:33 EST 2009


Author: emuckenhuber
Date: 2009-01-28 07:22:33 -0500 (Wed, 28 Jan 2009)
New Revision: 83553

Removed:
   trunk/system/src/tests/org/jboss/test/server/profileservice/bootstrap/BootstrapUnitTestCase.java
Log:
remove test

Deleted: trunk/system/src/tests/org/jboss/test/server/profileservice/bootstrap/BootstrapUnitTestCase.java
===================================================================
--- trunk/system/src/tests/org/jboss/test/server/profileservice/bootstrap/BootstrapUnitTestCase.java	2009-01-28 12:18:14 UTC (rev 83552)
+++ trunk/system/src/tests/org/jboss/test/server/profileservice/bootstrap/BootstrapUnitTestCase.java	2009-01-28 12:22:33 UTC (rev 83553)
@@ -1,96 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * 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
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */ 
-package org.jboss.test.server.profileservice.bootstrap;
-
-import java.io.File;
-import java.net.URL;
-import java.net.URLConnection;
-import java.util.Properties;
-
-import org.jboss.bootstrap.spi.Server;
-import org.jboss.bootstrap.spi.ServerConfig;
-import org.jboss.system.server.ServerLoader;
-import org.jboss.test.BaseTestCase;
-
-/**
- * @author <a href="mailto:emuckenh at redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-public class BootstrapUnitTestCase extends BaseTestCase
-{
-
-   public BootstrapUnitTestCase(String name)
-   {
-      super(name);
-   }
-
-   public void test() throws Exception
-   {
-      Properties props = System.getProperties();
-      
-      File home = new File("../build/output/jboss-6.0.0.Alpha1/");
-      props.put(ServerConfig.HOME_URL, home.toURL().toString());
-      props.put(ServerConfig.HOME_DIR, home.toURL().toString());
-      props.setProperty(ServerConfig.SERVER_BIND_ADDRESS, "127.0.0.1");
-      
-      File bootstrap = new File("src/resources/test/bootstrap/bootstrap.xml");
-      props.put("jboss.bootstrap.url", bootstrap.toURL().toString());
-      
-      ServerLoader loader = new ServerLoader(props);
-      loader.addEndorsedJars();
-      Server server = loader.load(Thread.currentThread().getContextClassLoader());      
-      try
-      {
-         // Init
-         server.init(props);
-         // Start
-         server.start();
-         
-         URL url = new URL("http://localhost:8080");
-         URLConnection connection = url.openConnection();
-         connection.connect();
-      
-      }
-      finally
-      {
-         // Stop
-         server.shutdown();
-      }
-      getLog().debug("java classpath: " + System.getProperty("java.class.path"));      
-   }
-   
-   protected void fixProperties(Properties props)
-   {
-      String bindAddress = System.getProperty(ServerConfig.SERVER_BIND_ADDRESS);
-      if (System.getProperty("java.rmi.server.hostname") == null)
-         System.setProperty("java.rmi.server.hostname", bindAddress);
-      if (System.getProperty("jgroups.bind_addr") == null)
-         System.setProperty("jgroups.bind_addr", bindAddress);
-      
-      // Enable jboss.vfs.forceCopy by default, if unspecified
-      if (System.getProperty("jboss.vfs.forceCopy") == null)
-         System.setProperty("jboss.vfs.forceCopy", "true");
-   }
-   
-   
-}
-




More information about the jboss-cvs-commits mailing list