commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oalex...@apache.org
Subject cvs commit: jakarta-commons-sandbox/services/src/test/org/apache/commons/services ServiceManagerTest.java
Date Wed, 30 Jan 2002 09:26:49 GMT
oalexeev    02/01/30 01:26:48

  Added:       services/src/test/org/apache/commons/services
                        ServiceManagerTest.java
  Log:
  Global test case for ServiceManager.
  
  Revision  Changes    Path
  1.1                  jakarta-commons-sandbox/services/src/test/org/apache/commons/services/ServiceManagerTest.java
  
  Index: ServiceManagerTest.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE file.
   */
  
  package org.apache.commons.services;
  
  /** 
   * 
   *  @version $Id: ServiceManagerTest.java,v 1.1 2002/01/30 09:26:48 oalexeev Exp $
   *  @author Oleg V Alexeev
   */
  
  import junit.framework.Test;
  import junit.framework.TestCase;
  import junit.framework.TestSuite;
  
   /** @author Oleg V Alexeev
   *   @version $Revision: 1.1 $ $Date: 2002/01/30 09:26:48 $
   */
  
  public class ServiceManagerTest extends TestCase {
  
      /**
       * Exercises this test case only
       */
      public static void main(String args[]) {
          junit.textui.TestRunner.run(suite());
      }
  
      // ---------------------------------------------------- Instance Variables
  
      /**
       * The test bean for each test.
       */
      protected ServiceManager serviceManager = null;
  
  
      // ---------------------------------------------------------- Constructors
  
      /**
       * Construct a new instance of this test case.
       *
       * @param name Name of the test case
       */
      public ServiceManagerTest(String name)
      {
          super(name);
      }
  
  
      // -------------------------------------------------- Overall Test Methods
  
  
      /**
       * Set up instance variables required by this test case.
       */
      public void setUp()
      {
          serviceManager = new ServiceManager();
      }
  
  
      /**
       * Return the tests included in this test suite.
       */
      public static Test suite()
      {
          return (new TestSuite(ServiceManagerTest.class));
      }
  
      /**
       * Tear down instance variables required by this test case.
       */
      public void tearDown()
      {
          serviceManager.destroy();
          serviceManager = null;
      }
  
  
      // ------------------------------------------------ Individual Test Methods
  
      public void testInit(){
          serviceManager.init( "file:///e:/projects/jakarta-commons-sandbox/services/src/conf/service-manager-test.xml"
);
  
      }
  
  }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message