01: /**************************************************************************/
02: /* NICE Testsuite */
03: /* A testsuite for the Nice programming language */
04: /* (c) Alex Greif 2002 */
05: /* */
06: /* This program is free software; you can redistribute it and/or modify */
07: /* it under the terms of the GNU General Public License as published by */
08: /* the Free Software Foundation; either version 2 of the License, or */
09: /* (at your option) any later version. */
10: /* */
11: /**************************************************************************/package nice.tools.testsuite;
12:
13: /**
14: * TestCase class fot the case that the test should pass
15: *
16: * @author Alex Greif <a href="mailto:alex.greif@web.de">alex.greif@web.de</a>
17: * @version $Id: PassTestCase.java,v 1.9 2003/02/19 18:30:27 bonniot Exp $
18: */
19: public class PassTestCase extends TestCase {
20:
21: /**
22: * Constructor.
23: *
24: * @param suite The testsuite this testcase belongs to
25: */
26: public PassTestCase(TestSuite suite) {
27: super (suite);
28: }
29:
30: /**
31: * Performs the test for this testcase.
32: * Compilation and the execution of the main() method
33: * should be successfully.
34: *
35: * @exception TestSuiteException TODO
36: */
37: public void performTest() {
38: super .performTest();
39: try {
40: compilePackages();
41: runMain();
42: } catch (TestSuiteException e) {
43: fail();
44: return;
45: } catch (CompilerBugException e) {
46: fail();
47: return;
48: }
49:
50: pass();
51: }
52:
53: }
54:
55: // Local Variables:
56: // tab-width: 2
57: // End:
|