KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hivemind > test > parse > TestToString


1 // Copyright 2004, 2005 The Apache Software Foundation
2
//
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 at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// 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 and
13
// 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 Ship
38  */

39
40 public class TestToString extends FrameworkTestCase
41 {
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
Popular Tags