01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.ui.tests.search;
11:
12: import junit.framework.Test;
13: import junit.framework.TestCase;
14: import junit.framework.TestSuite;
15:
16: /**
17: * This class is a wrapper for {@link org.eclipse.jdt.ui.tests.search.TreeContentProviderTest}
18: * in order to prevent the loading of the Search plug-in when the VM
19: * verifies some JDT UI code.
20: *
21: * @since 3.1
22: */
23: public class TreeContentProviderTestWrapper extends TestCase {
24:
25: TreeContentProviderTest fTest;
26: private String fName;
27:
28: public static Test allTests() {
29: return new JUnitSourceSetup(new TestSuite(
30: TreeContentProviderTestWrapper.class));
31: }
32:
33: public static Test suite() {
34: return allTests();
35: }
36:
37: public TreeContentProviderTestWrapper(String name) {
38: super (name);
39: fName = name;
40: }
41:
42: protected void setUp() throws Exception {
43: fTest = new TreeContentProviderTest(fName);
44: fTest.setUp();
45: }
46:
47: /*
48: * @see junit.framework.TestCase#tearDown()
49: * @since 3.1
50: */
51: protected void tearDown() throws Exception {
52: fTest.tearDown();
53: fTest = null;
54: }
55:
56: public void testSimpleAdd() throws Exception {
57: fTest.testSimpleAdd();
58: }
59:
60: public void testRemove() throws Exception {
61: fTest.testRemove();
62: }
63:
64: public void testRemoveParentFirst() throws Exception {
65: fTest.testRemoveParentFirst();
66: }
67:
68: public void testRemoveParentLast() throws Exception {
69: fTest.testRemoveParentLast();
70: }
71: }
|