1 /* getAccessibleRelationSet.java -- Tests the getAccesibleRelationSet method |
|
2 Copyright (C) 2006 Roman Kennke (kennke@aicas.com) |
|
3 This file is part of Mauve. |
|
4 |
|
5 Mauve is free software; you can redistribute it and/or modify |
|
6 it under the terms of the GNU General Public License as published by |
|
7 the Free Software Foundation; either version 2, or (at your option) |
|
8 any later version. |
|
9 |
|
10 Mauve is distributed in the hope that it will be useful, but |
|
11 WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 General Public License for more details. |
|
14 |
|
15 You should have received a copy of the GNU General Public License |
|
16 along with Mauve; see the file COPYING. If not, write to the |
|
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
18 02110-1301 USA. |
|
19 |
|
20 */ |
|
21 |
|
22 // Tags: JDK1.2 |
|
23 // Uses: TestAccessibleContext |
|
24 |
|
25 package gnu.testlet.javax.accessibility.AccessibleContext; |
|
26 |
|
27 import gnu.testlet.TestHarness; |
|
28 import gnu.testlet.Testlet; |
|
29 |
|
30 /** |
|
31 * Tests the default implementation of |
|
32 * AccessibleContext.getAccessibleRelationSet(). |
|
33 * |
|
34 * @author Roman Kennke (kennke@aicas.com) |
|
35 * |
|
36 */ |
|
37 public class getAccessibleRelationSet implements Testlet |
|
38 { |
|
39 |
|
40 /** |
|
41 * The entry point in that class. |
|
42 * |
|
43 * @param harness the test harness to use |
|
44 */ |
|
45 public void test(TestHarness harness) |
|
46 { |
|
47 TestAccessibleContext ctx = new TestAccessibleContext(); |
|
48 harness.check(ctx.getAccessibleRelationSet() != null); |
|
49 harness.check(ctx.getAccessibleRelationSet().size(), 0); |
|
50 } |
|
51 |
|
52 } |
|