|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.core.modules; import java.io.*; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.*; import org.netbeans.junit.*; import junit.textui.TestRunner; import org.netbeans.core.NbTopManager; import org.netbeans.core.Plain; import org.netbeans.core.projects.SessionManager; import org.openide.filesystems.FileSystem; /** Test the NetBeans module installer implementation. * Broken into pieces to ensure each runs in its own VM. * @author Jesse Glick */ public class NbInstallerTest8 extends SetupHid { public NbInstallerTest8(String name) { super(name); } public static void main(String[] args) { // Turn on verbose logging while developing tests: System.setProperty("org.netbeans.core.modules", "0"); // In case run standalone, need a work dir. if (System.getProperty("nbjunit.workdir") == null) { // Hope java.io.tmpdir is set... System.setProperty("nbjunit.workdir", System.getProperty("java.io.tmpdir")); } TestRunner.run(new NbTestSuite(NbInstallerTest8.class)); } private static File home, user, homeMod, userMod; private File moduleJar; protected void setUp() throws Exception { super.setUp(); System.setProperty("netbeans.suppress.sysprop.warning", "true"); System.setProperty("org.netbeans.core.modules.NbInstaller.noAutoDeps", "true"); // leave NO_COMPAT_AUTO_TRANSITIVE_DEPS=false moduleJar = new File(jars, "look-for-myself.jar"); } /** Test #28465: Lookup |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.