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.testplugin;
11:
12: import junit.extensions.TestSetup;
13: import junit.framework.Test;
14:
15: import org.eclipse.jdt.core.JavaCore;
16:
17: import org.eclipse.jdt.internal.ui.JavaPlugin;
18:
19: public class TestOptionsSetup extends TestSetup {
20:
21: public TestOptionsSetup(Test test) {
22: super (test);
23: }
24:
25: protected void setUp() throws Exception {
26: super .setUp();
27: JavaCore.setOptions(TestOptions.getDefaultOptions());
28: TestOptions.initializeCodeGenerationOptions();
29: // Use load since restore doesn't really restore the defaults.
30: JavaPlugin.getDefault().getCodeTemplateStore().load();
31: }
32: }
|