KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > BlackBoxTests


1 // $Id: BlackBoxTests.java,v 1.3 2004/05/12 17:26:50 anicoara Exp $
2
// =====================================================================
3
//
4
// (history at end)
5
//
6

7
8 // used packages
9
import junit.framework.*;
10 import ch.ethz.prose.*;
11 import ch.ethz.prose.crosscut.*;
12 import ch.ethz.prose.filter.*;
13 import ch.ethz.prose.query.QueryManagerTest;
14 import ch.ethz.prose.query.SurrogateTest;
15
16 /**
17  * JUnit testcase for all BlackBox Tests. Put In here all tests in which
18  * <ol>
19  * <li> you test an interface (interface = api)
20  * <li> you do an integration test against interfaces
21  * <li> you test if inheritance works as specified (interface=inheritance)
22  * </ol>
23  *
24  * @version $Revision: 1.3 $
25  * @author Andrei Popovici
26  * @author Angela Nicoara
27  */

28 public
29 class BlackBoxTests extends TestCase {
30
31
32   /**
33    * Construct test with given name.
34    * @param name test name
35    */

36   public BlackBoxTests(String JavaDoc name)
37   {
38     super(name);
39   }
40
41   /**
42    * Set up fixture.
43    */

44   protected
45   void setUp()
46   {
47   }
48
49   /**
50    * Test suite.
51    * @return test instance
52    */

53   public static
54   Test suite()
55     {
56
57
58     TestSuite testSuite = new TestSuite();
59
60
61
62 // testSuite.addTest(AbstractCrosscutSpecializerTest.suite());
63
testSuite.addTest(ExtensionSystemTest.suite());
64     testSuite.addTest(AbstractExtensionTest.suite());
65     testSuite.addTest(DeclarationSTest.suite());
66     testSuite.addTest(MethodSTest.suite());
67     testSuite.addTest(FieldNotificationTest.suite());
68     testSuite.addTest(AllFieldsTest.suite());
69     testSuite.addTest(FieldSTest.suite());
70     testSuite.addTest(TargetSTest.suite());
71     testSuite.addTest(ThiSTest.suite());
72     testSuite.addTest(ExceptionSTest.suite());
73     testSuite.addTest(ExceptionCatchSTest.suite());
74     testSuite.addTest(ExtensionInsertionTest.suite());
75     testSuite.addTest(SurrogateTest.suite());
76     testSuite.addTest(CflowSTest.suite());
77     testSuite.addTest(LocalExtensionManagerTest.suite());
78     testSuite.addTest(ExceptionCutUserDefinedTest.suite());
79     testSuite.addTest(QueryManagerTest.suite());
80 // testSuite.addTest(ExceptionCutTest.suite());
81
testSuite.addTest(ExceptionCatchCutTest.suite());
82     return testSuite;
83   }
84
85 }
86
87
88 //======================================================================
89
//
90
// $Log: BlackBoxTests.java,v $
91
// Revision 1.3 2004/05/12 17:26:50 anicoara
92
// Adapt Junit tests to 3.8.1 version and the new package structure
93
//
94
// Revision 1.1.1.1 2003/07/02 15:30:42 apopovic
95
// Imported from ETH Zurich
96
//
97
// Revision 1.20 2003/07/02 12:42:32 anicoara
98
// Added CatchJoinPoint Functionality (Requests, Join-Points, Filters, CatchCuts, Tests)
99
//
100
// Revision 1.19 2003/05/20 16:04:53 popovici
101
//
102
// New QueryManager replaces functionality in AspectManager (better Soc)
103
// New 'Surrogate' classes for usage in the QueryManager
104
// The 'RemoteAspectManager' and tools modified to use the Surrogates and the QueryManager
105
//
106
// Revision 1.18 2003/05/05 14:02:57 popovici
107
// renaming from runes to prose
108
//
109
// Revision 1.17 2003/04/25 15:15:14 popovici
110
// FieldS renamed to 'Fields'
111
//
112
// Revision 1.16 2003/04/17 15:15:15 popovici
113
// Extension->Aspect renaming
114
//
115
// Revision 1.15 2003/04/17 14:46:07 popovici
116
// ThiS renamed to This; additional method renamings
117
//
118
// Revision 1.14 2003/04/17 13:59:40 popovici
119
// This class and methods renamed
120
//
121
// Revision 1.13 2003/04/17 12:49:38 popovici
122
// Refactoring of the crosscut package
123
// ExceptionCut renamed to ThrowCut
124
// McutSignature is now SignaturePattern
125
//
126
// Revision 1.12 2003/04/17 08:46:42 popovici
127
// Important functionality additions
128
// - Cflow specializers
129
// - Restructuring of the MethodCut, SetCut, ThrowCut, and GetCut (they are much smaller)
130
// - Transactional capabilities
131
// - Total refactoring of Specializer evaluation, which permits fine-grained distinction
132
// between static and dynamic specializers.
133
// - Functionality pulled up in abstract classes
134
// - Uniformization of advice methods patterns and names
135
//
136
// Revision 1.11 2003/03/04 18:36:32 popovici
137
// Organization of imprts
138
//
139
// Revision 1.10 2003/03/04 11:25:52 popovici
140
// Important refactorization step (march):
141
// - removal of 'JoinPointEvents'; JoinPoints now have the same function as events
142
// - reimplementation of the JVMAIDebuggerAspectInterface (better performance, coding conventions, removal of ProseVM
143
// structures
144
//
145
// Revision 1.9 2003/01/17 14:46:16 pschoch
146
// Introduction of 'query' methods in the AspectManager and its
147
// subclasses. The result set is given back in form of surrogates; 4 new tests added to ExtensionManagerTest
148
// ExtensionSystemTest
149
//
150
// Revision 1.8 2002/11/26 17:15:20 pschoch
151
// RootComponent now added (replaces RootComponent now added (replaces old ProseSystem)
152
// ProseSystem now owns and starts the Aspect interface.
153
// ProseSystem now containes a 'test' AspectManager
154
// AspectManager now owns the JoinPointManager.
155
// ExtensionManger can be 'connected' to the JVM, or disconnected. The
156
// JoinPointManager of a connected Ext.Mgr enables joinpoints; the
157
// JoinPointManger of a disconnected Ext.Mgr never enables join-points
158
// Documentation updated accordingly.
159
//
160
// Revision 1.7 2002/10/31 18:26:43 pschoch
161
// Capability of crosscutting Exceptions added to prose.
162
//
163
// Revision 1.6 2002/10/25 07:42:26 popovici
164
// Undo Chnages Phillippe
165
//
166
// Revision 1.4 2002/05/16 09:18:21 popovici
167
// ClasseS and CFlow replaced with Target, This; the crosscut spec package is refactorized. Now all
168
// crosscuts are grouped (abstract definitions + concrete definitions). Crosscuts explicitely are dynamic and static, and
169
// or/Not/And combinations can be created.
170
//
171
// Revision 1.3 2002/02/05 10:44:18 smarkwal
172
// JVMDI-sepcific code replaced by JVMAI, implementation-classes and reflection-package removed
173
//
174
// Revision 1.2 2001/11/30 09:05:39 popovici
175
// Inexistend package removed
176
//
177
// Revision 1.1.1.1 2001/11/29 18:13:28 popovici
178
// Sources from runes
179
//
180
// Revision 1.1.2.27 2001/11/21 11:56:31 popovici
181
//
182
// -The sun.tools.agent and ch.ethz.inf.util.JVMDIUtil functionality
183
// replaced with the iks.jvmdi package. References to this old
184
// functionality replaced throughout the code.
185
// -Partial reimplementation of the ch.ethz.inf.iks.runes classes,
186
// part of their functionality moved to the ch.ethz.prose.reflect
187
// abstract classes. New classes and functionality added to the
188
// ch.ethz.prose.reflect package, partially to reflect the
189
// more stable features taken from the iks.runes packages, partially
190
// to reflect the structure of the VM (constant pool, etc). Functionality in
191
// ch.ethz.prose.crosscut and the junit classes adapted to use the
192
// new form of the ch.ethz.prose.reflect package
193
//
194
// Revision 1.1.2.26 2001/07/15 13:28:15 popovici
195
// Minor change due to different package renamings.
196
//
197
// Revision 1.1.2.25 2001/07/13 12:57:59 wieser
198
// Added test for ch.ethz.inf.midas.ConfigImpl.
199
//
200
// Revision 1.1.2.24 2001/07/11 12:41:01 popovici
201
// PersistentField SelectorTest added
202
//
203
// Revision 1.1.2.23 2001/05/15 16:31:33 popovici
204
// Ctx transfer test added.
205
//
206
// Revision 1.1.2.22 2001/04/05 15:31:05 popovici
207
// RegistryManagementTest added
208
//
209
// Revision 1.1.2.21 2001/04/03 14:37:37 mrmuller
210
// added AccessControlExtensionTest
211
//
212
// Revision 1.1.2.20 2001/03/27 09:29:41 popovici
213
// inf.runes.tengwar -> runes.tengwar, runes.demo.tengwar->iks.demo.tengwar renamings
214
//
215
// Revision 1.1.2.19 2001/03/26 15:07:41 mrmuller
216
// adapted to new package structure
217
//
218
// Revision 1.1.2.18 2001/03/25 12:34:31 mrmuller
219
// added CipherTest
220
//
221
// Revision 1.1.2.17 2001/03/23 12:31:00 popovici
222
// 'LocalExtensionManagerTest' added.
223
//
224
// Revision 1.1.2.16 2001/03/06 08:50:53 mrmuller
225
// added XORSocket/XORServerSocket test
226
//
227
// Revision 1.1.2.15 2001/02/12 17:05:37 mrmuller
228
// moved WebServerTest to BlackBoxTest and removed JiniExtensionSystemTest from BlackBoxTests
229
//
230
// Revision 1.1.2.14 2001/02/05 13:34:59 mrmuller
231
// added JiniExtensionManager test
232
//
233
// Revision 1.1.2.13 2001/02/02 11:54:37 groos
234
// FixedClassesTest and FixedObjectsTest added.
235
//
236
// Revision 1.1.2.12 2001/01/17 21:26:55 groos
237
// - added tests
238
// FieldNotificationTest
239
// FindByReachabilityTest
240
//
241
// Revision 1.1.2.11 2001/01/05 17:02:51 groos
242
// test FieldStorageManagerTest added.
243
//
244
// Revision 1.1.2.10 2000/12/14 18:19:50 groos
245
// - tengwar package added.
246
// - InstantiationHandlerTest added.
247
//
248
// Revision 1.1.2.9 2000/12/12 08:33:13 groos
249
// CFlowTest added (ch/ethz/inf/runes/crosscut/spec/)
250
//
251
// Revision 1.1.2.8 2000/11/28 17:01:03 groos
252
// test for crosscut AllFields added. (AllFieldsTest)
253
// test for specializer Fields added. (FieldSTest)
254
//
255
// Revision 1.1.2.7 2000/11/21 14:41:53 groos
256
// new test added:
257
// ch.ethz.prose.FieldEventIntegrationTest
258
//
259
// Revision 1.1.2.6 2000/11/14 15:36:39 groos
260
// added JVMDIUtilTest
261
//
262
// Revision 1.1.2.5 2000/10/26 14:28:36 popovici
263
// ClasseS and MethodS tests added
264
//
265
// Revision 1.1.2.4 2000/10/25 09:10:43 popovici
266
// Integration test added
267
//
268
// Revision 1.1.2.3 2000/10/24 18:06:37 popovici
269
// New tests added
270
//
271
// Revision 1.1.2.2 2000/10/23 18:48:12 popovici
272
// Minor fix: test suite renaming
273
//
274
// Revision 1.1.2.1 2000/10/17 13:50:06 popovici
275
// Initial Revision
276
//
277
Popular Tags