01: /*
02: * The contents of this file are subject to the terms of the Common Development and
03: * Distribution License (the License). You may not use this file except in compliance
04: * with the License.
05: *
06: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html or
07: * http://www.netbeans.org/cddl.txt.
08: *
09: * When distributing Covered Code, include this CDDL Header Notice in each file and
10: * include the License file at http://www.netbeans.org/cddl.txt. If applicable, add
11: * the following below the CDDL Header, with the fields enclosed by brackets []
12: * replaced by your own identifying information:
13: *
14: * "Portions Copyrighted [year] [name of copyright owner]"
15: *
16: * The Original Software is NetBeans. The Initial Developer of the Original Software
17: * is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun Microsystems, Inc. All
18: * Rights Reserved.
19: *
20: * $Id$
21: *
22: */
23:
24: package org.netbeans.test.installer;
25:
26: import java.util.logging.Logger;
27: import junit.framework.Test;
28: import junit.framework.TestSuite;
29: import org.netbeans.junit.NbTestCase;
30: import org.netbeans.junit.NbTestSuite;
31:
32: /**
33: *
34: * @author Mikhail Vaysman
35: */
36: public class TestInstallerAndUninstallerCPP extends NbTestCase {
37:
38: public TestInstallerAndUninstallerCPP() {
39: super ("Installer test");
40: }
41:
42: public static Test suite() {
43: TestSuite suite = new NbTestSuite(
44: TestInstallerAndUninstallerCPP.class);
45:
46: return suite;
47: }
48:
49: public void testInstaller() {
50: TestData data = new TestData(Logger.getLogger("global"));
51:
52: Utils.phaseOne(this , data, "cpp");
53:
54: Utils.phaseTwo(data);
55:
56: Utils.phaseFour(data);
57:
58: //TODO Dir removed test
59: //TODO Clean up work dir
60: }
61:
62: public static void main(String[] args) {
63: junit.textui.TestRunner.run(suite());
64: }
65: }
|