|
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.multiview; import java.awt.Image; import javax.swing.Action; import javax.swing.JPanel; import javax.swing.JToolBar; import junit.framework.*; import org.netbeans.core.api.multiview.MultiViewHandler; import org.netbeans.core.api.multiview.MultiViews; import org.netbeans.core.spi.multiview.MultiViewDescription; import org.netbeans.core.spi.multiview.MultiViewFactory; import org.netbeans.junit.*; import org.openide.util.HelpCtx; import org.openide.util.lookup.Lookups; import org.openide.windows.*; /** * * @author Milos Kleint */ public class MultiViewsTest extends NbTestCase { /** Creates a new instance of SFSTest */ public MultiViewsTest(String name) { super (name); } /** * @param args the command line arguments */ public static void main(java.lang.String[] args) { junit.textui.TestRunner.run(suite()); } public static Test suite() { TestSuite suite = new NbTestSuite(MultiViewsTest.class); return suite; } protected boolean runInEQ () { return true; } public void testcreateMultiViewHandler () throws Exception { MultiViewDescription desc1 = new MVDesc("desc1", null, 0, new MVElem()); MultiViewDescription[] descs = new MultiViewDescription[] { desc1 }; TopComponent tc = MultiViewFactory.createMultiView(descs, desc1); MultiViewHandler hand = MultiViews.findMultiViewHandler(tc); assertNotNull(hand); tc = new TopComponent(); hand = MultiViews.findMultiViewHandler(tc); assertNull(hand); hand = MultiViews.findMultiViewHandler(null); assertNull(hand); } } |
... 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.