KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > first > Test


1 /*
2  * Cobertura - http://cobertura.sourceforge.net/
3  *
4  * Copyright (C) 2006 John Lewis
5  *
6  * Note: This file is dual licensed under the GPL and the Apache
7  * Source License (so that it can be used from both the main
8  * Cobertura classes and the ant tasks).
9  *
10  * Cobertura is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published
12  * by the Free Software Foundation; either version 2 of the License,
13  * or (at your option) any later version.
14  *
15  * Cobertura is distributed in the hope that it will be useful, but
16  * WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with Cobertura; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23  * USA
24  */

25
26 package test.first;
27
28 import junit.framework.TestCase;
29
30 /**
31  * Simple class used in functional testing.
32  *
33  * @author John Lewis
34  */

35 public class Test extends TestCase
36 {
37
38     public Test(String JavaDoc name)
39     {
40         super(name);
41     }
42
43     /**
44      * Call the methods called "call"
45      */

46     public void testMethod()
47     {
48         A a = new A();
49         a.call();
50
51         B b = new B();
52         b.call();
53
54         test.second.A a2 = new test.second.A();
55         a2.call();
56
57         test.second.B b2 = new test.second.B();
58         b2.call();
59     }
60
61 }
62
Popular Tags