001 /* 002 * $Id: ResourcesFactoryBaseTestCase.java 354761 2005-12-07 15:11:58Z niallp $ 003 * $Revision: 354761 $ 004 * $Date: 2005-12-07 15:11:58 +0000 (Wed, 07 Dec 2005) $ 005 * 006 * ==================================================================== 007 * 008 * Copyright 2003-2005 The Apache Software Foundation 009 * 010 * Licensed under the Apache License, Version 2.0 (the "License"); 011 * you may not use this file except in compliance with the License. 012 * You may obtain a copy of the License at 013 * 014 * http://www.apache.org/licenses/LICENSE-2.0 015 * 016 * Unless required by applicable law or agreed to in writing, software 017 * distributed under the License is distributed on an "AS IS" BASIS, 018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 019 * See the License for the specific language governing permissions and 020 * limitations under the License. 021 * 022 */ 023 024 package org.apache.commons.resources.impl; 025 026 import junit.framework.Test; 027 import junit.framework.TestCase; 028 import junit.framework.TestSuite; 029 030 import org.apache.commons.resources.ResourcesFactory; 031 032 /** 033 * <p>Unit tests for 034 * <code>org.apache.commons.resources.impl.ResourcesFactoryBase</code>. 035 * </p> 036 */ 037 public class ResourcesFactoryBaseTestCase extends TestCase { 038 039 040 // ----------------------------------------------------- Instance Variables 041 042 043 // Logical name of the Resources instance to be created 044 protected static final String NAME = "name"; 045 046 047 // The <code>ResourcesFactory</code> instance to be tested. 048 protected ResourcesFactory factory = null; 049 050 051 // ----------------------------------------------------------- Constructors 052 053 054 public ResourcesFactoryBaseTestCase(String name) { 055 super(name); 056 } 057 058 059 // --------------------------------------------------- Overall Test Methods 060 061 062 // Set up instance variables required by this test case 063 public void setUp() throws Exception { 064 factory = new TestResourcesFactory(); 065 } 066 067 // Return the tests included in this test suite 068 public static Test suite() { 069 return (new TestSuite(ResourcesFactoryBaseTestCase.class)); 070 } 071 072 // Tear down the instance variables required by this test case 073 public void tearDown() { 074 factory = null; 075 } 076 077 078 // ------------------------------------------------ Individual Test Methods 079 080 081 // Test the characteristics of a newly created instance 082 public void testPristine() { 083 assertNotNull(factory); 084 } 085 086 087 }