1 // Copyright 2004, 2005 The Apache Software Foundation2 //3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at6 //7 // http://www.apache.org/licenses/LICENSE-2.08 //9 // Unless required by applicable law or agreed to in writing, software10 // distributed under the License is distributed on an "AS IS" BASIS,11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 // See the License for the specific language governing permissions and13 // limitations under the License.14 15 package hivemind.test.parse;16 17 import hivemind.test.FrameworkTestCase;18 19 import org.apache.hivemind.impl.AttributeImpl;20 import org.apache.hivemind.impl.DefaultErrorHandler;21 import org.apache.hivemind.impl.ElementImpl;22 import org.apache.hivemind.parse.ConfigurationPointDescriptor;23 import org.apache.hivemind.parse.ContributionDescriptor;24 import org.apache.hivemind.parse.CreateInstanceDescriptor;25 import org.apache.hivemind.parse.DependencyDescriptor;26 import org.apache.hivemind.parse.ImplementationDescriptor;27 import org.apache.hivemind.parse.InterceptorDescriptor;28 import org.apache.hivemind.parse.InvokeFactoryDescriptor;29 import org.apache.hivemind.parse.ModuleDescriptor;30 import org.apache.hivemind.parse.ServicePointDescriptor;31 import org.apache.hivemind.parse.SubModuleDescriptor;32 33 /**34 * A cheat, for code-coverage reasons. We check that all the classes have a toString()35 * method.36 *37 * @author Howard Lewis Ship38 */39 40 public class TestToString extends FrameworkTestCase41 {42 43 public void testToString()44 {45 new ConfigurationPointDescriptor().toString();46 new ContributionDescriptor().toString();47 new ImplementationDescriptor().toString();48 new CreateInstanceDescriptor().toString();49 new InvokeFactoryDescriptor().toString();50 new ModuleDescriptor(_resolver, new DefaultErrorHandler()).toString();51 new SubModuleDescriptor().toString();52 new DependencyDescriptor().toString();53 new ServicePointDescriptor().toString();54 new InterceptorDescriptor().toString();55 new ElementImpl().toString();56 new AttributeImpl("foo", "bar").toString();57 }58 }59