001 /*
002 * $Id: ResourceBundleResourcesFactoryTestCase.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.ResourceBundleResourcesFactory</code>.
035 * </p>
036 */
037 public class ResourceBundleResourcesFactoryTestCase extends TestCase {
038
039
040 // ----------------------------------------------------- Instance Variables
041
042
043 // Configuration value for our resource bundles
044 protected static final String CONFIG = "org.apache.commons.resources.impl.TestResources";
045
046 // Logical name of the Resources instance to be created
047 protected static final String NAME = "name";
048
049
050 // The <code>ResourcesFactory</code> instance to be tested.
051 protected ResourcesFactory factory = null;
052
053
054 // ----------------------------------------------------------- Constructors
055
056
057 public ResourceBundleResourcesFactoryTestCase(String name) {
058 super(name);
059 }
060
061
062 // --------------------------------------------------- Overall Test Methods
063
064
065 // Set up instance variables required by this test case
066 public void setUp() throws Exception {
067 factory = new ResourceBundleResourcesFactory();
068 }
069
070 // Return the tests included in this test suite
071 public static Test suite() {
072 return (new TestSuite(ResourceBundleResourcesFactoryTestCase.class));
073 }
074
075 // Tear down the instance variables required by this test case
076 public void tearDown() {
077 factory = null;
078 }
079
080
081 // ------------------------------------------------ Individual Test Methods
082
083
084 // Test the characteristics of a newly created instance
085 public void testPristine() {
086 assertNotNull(factory);
087 }
088
089
090 }