|
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 2004 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.junit.wizards; import java.io.IOException; import java.util.Collections; import java.util.Set; import org.netbeans.api.project.Project; import org.netbeans.api.project.ProjectUtils; import org.netbeans.api.project.SourceGroup; import org.netbeans.modules.junit.CreateTestAction; import org.netbeans.modules.junit.GuiUtils; import org.netbeans.modules.junit.JUnitSettings; import org.netbeans.spi.project.ui.templates.support.Templates; import org.openide.DialogDisplayer; import org.openide.NotifyDescriptor; import org.openide.filesystems.FileObject; import org.openide.filesystems.FileUtil; import org.openide.filesystems.Repository; import org.openide.loaders.DataFolder; import org.openide.loaders.DataObject; import org.openide.loaders.DataObjectNotFoundException; import org.openide.loaders.TemplateWizard; import org.openide.util.NbBundle; /** * Wizard for an empty test case. * * @author Marian Petras */ public class EmptyTestCaseWizard extends TemplateWizard { /** name of property "package" */ static final String PROP_PACKAGE = "package"; //NOI18N /** name of property "class name" */ static final String PROP_CLASS_NAME = "className"; //NOI18N // PENDING - should not be hard-coded: static final String JAVA_SOURCE_GROUPS = "java"; //NOI18N // PENDING - should not be hard-coded: static final String TESTS_ROOT_NAME = "test"; //NOI18N /** * initializes the settings for the settings panel */ public void initialize() { JUnitSettings settings = JUnitSettings.getDefault(); putProperty(GuiUtils.CHK_SETUP, Boolean.valueOf(settings.isGenerateSetUp())); putProperty(GuiUtils.CHK_TEARDOWN, Boolean.valueOf(settings.isGenerateTearDown())); putProperty(GuiUtils.CHK_HINTS, Boolean.valueOf(settings.isBodyComments())); } } |
... 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.