|
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-2003 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.test.debugger.basic; import org.openide.filesystems.FileObject; import org.openide.filesystems.Repository; /** * Test on presence of toolbars. * * @author Jan Stola */ public class ToolBarsPresenceTestCase extends org.netbeans.junit.NbTestCase { private static final String DEBUGGING_CONFIGURATION="Debugging"; private static final String TOOLBAR_VIEW="View"; private static final String TOOLBARITEM_DEBUGGER_WINDOW="org-netbeans-modules-debugger-support-actions-DebuggerWindowAction"; private static final String TOOLBAR_DEBUG="Debug"; private static final String TOOLBARITEM_START="org-netbeans-modules-debugger-support-actions-StartAction"; private static final String TOOLBARITEM_STEP_INTO="org-netbeans-modules-debugger-support-actions-StepIntoAction"; private static final String TOOLBARITEM_STEP_OVER="org-netbeans-modules-debugger-support-actions-StepOverAction"; private static final String TOOLBARITEM_ADD_BREAKPOINT="org-netbeans-modules-debugger-support-actions-AddBreakpointAction"; private static final String TOOLBARITEM_ADD_WATCH="org-netbeans-modules-debugger-support-actions-AddWatchAction"; private static final String TOOLBAR_DEBUG_FULL="DebugFull"; private static final String TOOLBARITEM_CONTINUE="org-netbeans-modules-debugger-support-actions-ContinueAction"; private static final String TOOLBARITEM_ATTACH="org-netbeans-modules-debugger-support-actions-ConnectAction"; private static final String TOOLBARITEM_FINISH="org-netbeans-modules-debugger-support-actions-FinishAction"; private static final String TOOLBARITEM_PAUSE="org-netbeans-modules-debugger-support-actions-PauseAction"; private static final String TOOLBARITEM_RUN_TO_CURSOR="org-netbeans-modules-debugger-support-actions-RunToCursorAction"; private static final String TOOLBARITEM_STEP_OUT="org-netbeans-modules-debugger-support-actions-StepOutAction"; private static final String TOOLBARITEM_TOGGLE_BREAKPOINT="org-netbeans-modules-debugger-support-actions-ToggleBreakpointAction"; private static final String TOOLBARITEM_FIX="org-netbeans-modules-debugger-support-actions-FixAction"; private static final String TOOLBAR_FOLDER = "Toolbars"; public ToolBarsPresenceTestCase(String name) { super(name); } public void testDebuggingConfiguration() { int i; FileObject[] dos=Repository.getDefault().findResource(TOOLBAR_FOLDER).getChildren(); for (i=0; i |
... 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.