0001: /*
0002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0003: *
0004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
0005: *
0006: * The contents of this file are subject to the terms of either the GNU
0007: * General Public License Version 2 only ("GPL") or the Common
0008: * Development and Distribution License("CDDL") (collectively, the
0009: * "License"). You may not use this file except in compliance with the
0010: * License. You can obtain a copy of the License at
0011: * http://www.netbeans.org/cddl-gplv2.html
0012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
0013: * specific language governing permissions and limitations under the
0014: * License. When distributing the software, include this License Header
0015: * Notice in each file and include the License file at
0016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
0017: * particular file as subject to the "Classpath" exception as provided
0018: * by Sun in the GPL Version 2 section of the License file that
0019: * accompanied this code. If applicable, add the following below the
0020: * License Header, with the fields enclosed by brackets [] replaced by
0021: * your own identifying information:
0022: * "Portions Copyrighted [year] [name of copyright owner]"
0023: *
0024: * If you wish your version of this file to be governed by only the CDDL
0025: * or only the GPL Version 2, indicate your decision by adding
0026: * "[Contributor] elects to include this software in this distribution
0027: * under the [CDDL or GPL Version 2] license." If you do not indicate a
0028: * single choice of license, a recipient has the option to distribute
0029: * your version of this file under either the CDDL, the GPL Version 2 or
0030: * to extend the choice of license to its licensees as provided above.
0031: * However, if you add GPL Version 2 code and therefore, elected the GPL
0032: * Version 2 license, then the option applies only if the new code is
0033: * made subject to such option by the copyright holder.
0034: *
0035: * Contributor(s):
0036: *
0037: * Portions Copyrighted 2007 Sun Microsystems, Inc.
0038: */
0039:
0040: package org.netbeans.modules.visualweb.designer;
0041:
0042: import java.awt.Dimension;
0043: import java.awt.Graphics2D;
0044: import java.awt.Point;
0045: import java.awt.Rectangle;
0046: import java.awt.datatransfer.DataFlavor;
0047: import java.awt.datatransfer.Transferable;
0048: import java.awt.event.ActionEvent;
0049: import java.net.URL;
0050: import javax.swing.ActionMap;
0051: import javax.swing.CellRendererPane;
0052: import javax.swing.JComponent;
0053: import junit.framework.TestCase;
0054: import org.netbeans.junit.NbTestCase;
0055: import org.netbeans.modules.visualweb.api.designer.Designer.Box;
0056: import org.netbeans.modules.visualweb.api.designer.Designer.DesignerClickEvent;
0057: import org.netbeans.modules.visualweb.api.designer.Designer.DesignerEvent;
0058: import org.netbeans.modules.visualweb.api.designer.Designer.DesignerListener;
0059: import org.netbeans.modules.visualweb.api.designer.Designer.DesignerPopupEvent;
0060: import org.netbeans.modules.visualweb.api.designer.Designer.RenderContext;
0061: import org.netbeans.modules.visualweb.api.designer.DomProvider;
0062: import org.netbeans.modules.visualweb.api.designer.DomProvider.DomDocument;
0063: import org.netbeans.modules.visualweb.api.designer.DomProvider.DomPosition;
0064: import org.netbeans.modules.visualweb.api.designer.DomProvider.DomPosition.Bias;
0065: import org.netbeans.modules.visualweb.api.designer.DomProvider.DomRange;
0066: import org.netbeans.modules.visualweb.api.designer.DomProvider.InlineEditorSupport;
0067: import org.netbeans.modules.visualweb.api.designer.DomProviderService;
0068: import org.netbeans.modules.visualweb.css2.CssBox;
0069: import org.netbeans.modules.visualweb.designer.html.HtmlTag;
0070: import org.netbeans.modules.visualweb.spi.designer.Decoration;
0071: import org.netbeans.spi.palette.PaletteController;
0072: import org.openide.nodes.Node;
0073: import org.w3c.dom.Document;
0074: import org.w3c.dom.Element;
0075:
0076: /**
0077: *
0078: * @author Peter Zavadsky
0079: */
0080: public class WebFormTest extends NbTestCase {
0081:
0082: public WebFormTest(String testName) {
0083: super (testName);
0084: }
0085:
0086: @Override
0087: protected void setUp() throws Exception {
0088: super .setUp();
0089: }
0090:
0091: @Override
0092: protected void tearDown() throws Exception {
0093: super .tearDown();
0094: }
0095:
0096: /**
0097: * Test of createWebForm method, of class WebForm.
0098: */
0099: public void testCreateWebForm() {
0100: System.out.println("createWebForm");
0101: DomProvider domProvider = Util.createDomProvider();
0102: WebForm webForm = WebForm.createWebForm(domProvider);
0103: assertNotNull("Null webForm for domProvider, domProvider="
0104: + domProvider, webForm); // NOI18N
0105: }
0106:
0107: /**
0108: * Test of getDomProviderService method, of class WebForm.
0109: */
0110: public void testGetDomProviderService() {
0111: System.out.println("getDomProviderService");
0112: DomProvider domProvider = Util.createDomProvider();
0113: WebForm webForm = WebForm.createWebForm(domProvider);
0114: assertNotNull("Null webForm for domProvider, domProvider="
0115: + domProvider, webForm); // NOI18N
0116: DomProviderService domProviderService = webForm
0117: .getDomProviderService();
0118: assertNotNull("There may not be a null DomProviderService!",
0119: domProviderService); // NOI18N
0120: }
0121:
0122: // /**
0123: // * Test of findAllWebFormsForElement method, of class WebForm.
0124: // */
0125: // public void testFindAllWebFormsForElement() {
0126: // System.out.println("findAllWebFormsForElement");
0127: // Element element = null;
0128: // WebForm[] expResult = null;
0129: // WebForm[] result = WebForm.findAllWebFormsForElement(element);
0130: // assertEquals(expResult, result);
0131: // // TODO review the generated test code and remove the default call to fail.
0132: // fail("The test case is a prototype.");
0133: // }
0134: //
0135: // /**
0136: // * Test of findWebFormForElement method, of class WebForm.
0137: // */
0138: // public void testFindWebFormForElement() {
0139: // System.out.println("findWebFormForElement");
0140: // Element element = null;
0141: // WebForm expResult = null;
0142: // WebForm result = WebForm.findWebFormForElement(element);
0143: // assertEquals(expResult, result);
0144: // // TODO review the generated test code and remove the default call to fail.
0145: // fail("The test case is a prototype.");
0146: // }
0147: //
0148: // /**
0149: // * Test of findWebFormForNode method, of class WebForm.
0150: // */
0151: // public void testFindWebFormForNode() {
0152: // System.out.println("findWebFormForNode");
0153: // Node node = null;
0154: // WebForm expResult = null;
0155: // WebForm result = WebForm.findWebFormForNode(node);
0156: // assertEquals(expResult, result);
0157: // // TODO review the generated test code and remove the default call to fail.
0158: // fail("The test case is a prototype.");
0159: // }
0160: //
0161: // /**
0162: // * Test of getDomProvider method, of class WebForm.
0163: // */
0164: // public void testGetDomProvider() {
0165: // System.out.println("getDomProvider");
0166: // WebForm instance = null;
0167: // DomProvider expResult = null;
0168: // DomProvider result = instance.getDomProvider();
0169: // assertEquals(expResult, result);
0170: // // TODO review the generated test code and remove the default call to fail.
0171: // fail("The test case is a prototype.");
0172: // }
0173: //
0174: // /**
0175: // * Test of toString method, of class WebForm.
0176: // */
0177: // public void testToString() {
0178: // System.out.println("toString");
0179: // WebForm instance = null;
0180: // String expResult = "";
0181: // String result = instance.toString();
0182: // assertEquals(expResult, result);
0183: // // TODO review the generated test code and remove the default call to fail.
0184: // fail("The test case is a prototype.");
0185: // }
0186: //
0187: // /**
0188: // * Test of setCssBoxForElement method, of class WebForm.
0189: // */
0190: // public void testSetCssBoxForElement() {
0191: // System.out.println("setCssBoxForElement");
0192: // Element element = null;
0193: // CssBox box = null;
0194: // WebForm instance = null;
0195: // instance.setCssBoxForElement(element, box);
0196: // // TODO review the generated test code and remove the default call to fail.
0197: // fail("The test case is a prototype.");
0198: // }
0199: //
0200: // /**
0201: // * Test of getCssBoxForElement method, of class WebForm.
0202: // */
0203: // public void testGetCssBoxForElement() {
0204: // System.out.println("getCssBoxForElement");
0205: // Element element = null;
0206: // WebForm instance = null;
0207: // CssBox expResult = null;
0208: // CssBox result = instance.getCssBoxForElement(element);
0209: // assertEquals(expResult, result);
0210: // // TODO review the generated test code and remove the default call to fail.
0211: // fail("The test case is a prototype.");
0212: // }
0213: //
0214: // /**
0215: // * Test of copyBoxForElement method, of class WebForm.
0216: // */
0217: // public void testCopyBoxForElement() {
0218: // System.out.println("copyBoxForElement");
0219: // Element fromElement = null;
0220: // Element toElement = null;
0221: // WebForm instance = null;
0222: // instance.copyBoxForElement(fromElement, toElement);
0223: // // TODO review the generated test code and remove the default call to fail.
0224: // fail("The test case is a prototype.");
0225: // }
0226: //
0227: // /**
0228: // * Test of findCssBoxForElement method, of class WebForm.
0229: // */
0230: // public void testFindCssBoxForElement() {
0231: // System.out.println("findCssBoxForElement");
0232: // Element element = null;
0233: // WebForm instance = null;
0234: // CssBox expResult = null;
0235: // CssBox result = instance.findCssBoxForElement(element);
0236: // assertEquals(expResult, result);
0237: // // TODO review the generated test code and remove the default call to fail.
0238: // fail("The test case is a prototype.");
0239: // }
0240: //
0241: // /**
0242: // * Test of getPane method, of class WebForm.
0243: // */
0244: // public void testGetPane() {
0245: // System.out.println("getPane");
0246: // WebForm instance = null;
0247: // DesignerPane expResult = null;
0248: // DesignerPane result = instance.getPane();
0249: // assertEquals(expResult, result);
0250: // // TODO review the generated test code and remove the default call to fail.
0251: // fail("The test case is a prototype.");
0252: // }
0253: //
0254: // /**
0255: // * Test of hasSelection method, of class WebForm.
0256: // */
0257: // public void testHasSelection() {
0258: // System.out.println("hasSelection");
0259: // WebForm instance = null;
0260: // boolean expResult = false;
0261: // boolean result = instance.hasSelection();
0262: // assertEquals(expResult, result);
0263: // // TODO review the generated test code and remove the default call to fail.
0264: // fail("The test case is a prototype.");
0265: // }
0266: //
0267: // /**
0268: // * Test of getSelection method, of class WebForm.
0269: // */
0270: // public void testGetSelection() {
0271: // System.out.println("getSelection");
0272: // WebForm instance = null;
0273: // SelectionManager expResult = null;
0274: // SelectionManager result = instance.getSelection();
0275: // assertEquals(expResult, result);
0276: // // TODO review the generated test code and remove the default call to fail.
0277: // fail("The test case is a prototype.");
0278: // }
0279: //
0280: // /**
0281: // * Test of getDomDocument method, of class WebForm.
0282: // */
0283: // public void testGetDomDocument() {
0284: // System.out.println("getDomDocument");
0285: // WebForm instance = null;
0286: // DomDocument expResult = null;
0287: // DomDocument result = instance.getDomDocument();
0288: // assertEquals(expResult, result);
0289: // // TODO review the generated test code and remove the default call to fail.
0290: // fail("The test case is a prototype.");
0291: // }
0292: //
0293: // /**
0294: // * Test of getHtmlDom method, of class WebForm.
0295: // */
0296: // public void testGetHtmlDom() {
0297: // System.out.println("getHtmlDom");
0298: // WebForm instance = null;
0299: // Document expResult = null;
0300: // Document result = instance.getHtmlDom();
0301: // assertEquals(expResult, result);
0302: // // TODO review the generated test code and remove the default call to fail.
0303: // fail("The test case is a prototype.");
0304: // }
0305:
0306: /**
0307: * Test of getHtmlBody method, of class WebForm.
0308: */
0309: public void testGetHtmlBody() {
0310: System.out.println("getHtmlBody");
0311: DomProvider domProvider = Util.createDomProvider();
0312: WebForm webForm = WebForm.createWebForm(domProvider);
0313: assertNotNull(
0314: "Null WebForm instance for domProvider, domProvider="
0315: + domProvider, webForm); // NOI18N
0316: Element body = webForm.getHtmlBody();
0317: assertNotNull("Null body elment for webForm, webForm="
0318: + webForm, body); // NOI18N
0319: String tagName = body.getTagName();
0320: assertEquals("Incorrect body element, it was tagName=" // NOI18N
0321: + tagName + ", expected=" // NOI18N
0322: + HtmlTag.BODY.name, body.getTagName(),
0323: HtmlTag.BODY.name);
0324: }
0325:
0326: // /**
0327: // * Test of setPaneGrid method, of class WebForm.
0328: // */
0329: // public void testSetPaneGrid() {
0330: // System.out.println("setPaneGrid");
0331: // boolean gridMode = false;
0332: // WebForm instance = null;
0333: // instance.setPaneGrid(gridMode);
0334: // // TODO review the generated test code and remove the default call to fail.
0335: // fail("The test case is a prototype.");
0336: // }
0337: //
0338: // /**
0339: // * Test of isGridMode method, of class WebForm.
0340: // */
0341: // public void testIsGridMode() {
0342: // System.out.println("isGridMode");
0343: // WebForm instance = null;
0344: // boolean expResult = false;
0345: // boolean result = instance.isGridMode();
0346: // assertEquals(expResult, result);
0347: // // TODO review the generated test code and remove the default call to fail.
0348: // fail("The test case is a prototype.");
0349: // }
0350: //
0351: // /**
0352: // * Test of getRenderPane method, of class WebForm.
0353: // */
0354: // public void testGetRenderPane() {
0355: // System.out.println("getRenderPane");
0356: // WebForm instance = null;
0357: // CellRendererPane expResult = null;
0358: // CellRendererPane result = instance.getRenderPane();
0359: // assertEquals(expResult, result);
0360: // // TODO review the generated test code and remove the default call to fail.
0361: // fail("The test case is a prototype.");
0362: // }
0363: //
0364: // /**
0365: // * Test of getColors method, of class WebForm.
0366: // */
0367: // public void testGetColors() {
0368: // System.out.println("getColors");
0369: // WebForm instance = null;
0370: // ColorManager expResult = null;
0371: // ColorManager result = instance.getColors();
0372: // assertEquals(expResult, result);
0373: // // TODO review the generated test code and remove the default call to fail.
0374: // fail("The test case is a prototype.");
0375: // }
0376: //
0377: // /**
0378: // * Test of getManager method, of class WebForm.
0379: // */
0380: // public void testGetManager() {
0381: // System.out.println("getManager");
0382: // WebForm instance = null;
0383: // InteractionManager expResult = null;
0384: // InteractionManager result = instance.getManager();
0385: // assertEquals(expResult, result);
0386: // // TODO review the generated test code and remove the default call to fail.
0387: // fail("The test case is a prototype.");
0388: // }
0389: //
0390: // /**
0391: // * Test of getImageCache method, of class WebForm.
0392: // */
0393: // public void testGetImageCache() {
0394: // System.out.println("getImageCache");
0395: // WebForm instance = null;
0396: // ImageCache expResult = null;
0397: // ImageCache result = instance.getImageCache();
0398: // assertEquals(expResult, result);
0399: // // TODO review the generated test code and remove the default call to fail.
0400: // fail("The test case is a prototype.");
0401: // }
0402: //
0403: // /**
0404: // * Test of hasCachedFrameBoxes method, of class WebForm.
0405: // */
0406: // public void testHasCachedFrameBoxes() {
0407: // System.out.println("hasCachedFrameBoxes");
0408: // WebForm instance = null;
0409: // boolean expResult = false;
0410: // boolean result = instance.hasCachedFrameBoxes();
0411: // assertEquals(expResult, result);
0412: // // TODO review the generated test code and remove the default call to fail.
0413: // fail("The test case is a prototype.");
0414: // }
0415: //
0416: // /**
0417: // * Test of changeNode method, of class WebForm.
0418: // */
0419: // public void testChangeNode() {
0420: // System.out.println("changeNode");
0421: // org.w3c.dom.Node rendered = null;
0422: // org.w3c.dom.Node parent = null;
0423: // Element[] changedElements = null;
0424: // WebForm instance = null;
0425: // instance.changeNode(rendered, parent, changedElements);
0426: // // TODO review the generated test code and remove the default call to fail.
0427: // fail("The test case is a prototype.");
0428: // }
0429: //
0430: // /**
0431: // * Test of removeNode method, of class WebForm.
0432: // */
0433: // public void testRemoveNode() {
0434: // System.out.println("removeNode");
0435: // org.w3c.dom.Node previouslyRendered = null;
0436: // org.w3c.dom.Node parent = null;
0437: // WebForm instance = null;
0438: // instance.removeNode(previouslyRendered, parent);
0439: // // TODO review the generated test code and remove the default call to fail.
0440: // fail("The test case is a prototype.");
0441: // }
0442: //
0443: // /**
0444: // * Test of insertNode method, of class WebForm.
0445: // */
0446: // public void testInsertNode() {
0447: // System.out.println("insertNode");
0448: // org.w3c.dom.Node rendered = null;
0449: // org.w3c.dom.Node parent = null;
0450: // WebForm instance = null;
0451: // instance.insertNode(rendered, parent);
0452: // // TODO review the generated test code and remove the default call to fail.
0453: // fail("The test case is a prototype.");
0454: // }
0455: //
0456: // /**
0457: // * Test of detachDomDocument method, of class WebForm.
0458: // */
0459: // public void testDetachDomDocument() {
0460: // System.out.println("detachDomDocument");
0461: // WebForm instance = null;
0462: // instance.detachDomDocument();
0463: // // TODO review the generated test code and remove the default call to fail.
0464: // fail("The test case is a prototype.");
0465: // }
0466: //
0467: // /**
0468: // * Test of getExternalDomProviders method, of class WebForm.
0469: // */
0470: // public void testGetExternalDomProviders() {
0471: // System.out.println("getExternalDomProviders");
0472: // WebForm instance = null;
0473: // DomProvider[] expResult = null;
0474: // DomProvider[] result = instance.getExternalDomProviders();
0475: // assertEquals(expResult, result);
0476: // // TODO review the generated test code and remove the default call to fail.
0477: // fail("The test case is a prototype.");
0478: // }
0479: //
0480: // /**
0481: // * Test of resetAll method, of class WebForm.
0482: // */
0483: // public void testResetAll() {
0484: // System.out.println("resetAll");
0485: // WebForm instance = null;
0486: // instance.resetAll();
0487: // // TODO review the generated test code and remove the default call to fail.
0488: // fail("The test case is a prototype.");
0489: // }
0490: //
0491: // /**
0492: // * Test of canImport method, of class WebForm.
0493: // */
0494: // public void testCanImport() {
0495: // System.out.println("canImport");
0496: // JComponent comp = null;
0497: // DataFlavor[] transferFlavors = null;
0498: // Transferable transferable = null;
0499: // WebForm instance = null;
0500: // boolean expResult = false;
0501: // boolean result = instance.canImport(comp, transferFlavors, transferable);
0502: // assertEquals(expResult, result);
0503: // // TODO review the generated test code and remove the default call to fail.
0504: // fail("The test case is a prototype.");
0505: // }
0506: //
0507: // /**
0508: // * Test of computeActions method, of class WebForm.
0509: // */
0510: // public void testComputeActions() {
0511: // System.out.println("computeActions");
0512: // Element dropeeComponentRootElement = null;
0513: // Transferable transferable = null;
0514: // WebForm instance = null;
0515: // int expResult = 0;
0516: // int result = instance.computeActions(dropeeComponentRootElement, transferable);
0517: // assertEquals(expResult, result);
0518: // // TODO review the generated test code and remove the default call to fail.
0519: // fail("The test case is a prototype.");
0520: // }
0521: //
0522: // /**
0523: // * Test of processLinks method, of class WebForm.
0524: // */
0525: // public void testProcessLinks() {
0526: // System.out.println("processLinks");
0527: // Element origElement = null;
0528: // Element componentRootElement = null;
0529: // WebForm instance = null;
0530: // int expResult = 0;
0531: // int result = instance.processLinks(origElement, componentRootElement);
0532: // assertEquals(expResult, result);
0533: // // TODO review the generated test code and remove the default call to fail.
0534: // fail("The test case is a prototype.");
0535: // }
0536: //
0537: // /**
0538: // * Test of showDropMatch method, of class WebForm.
0539: // */
0540: // public void testShowDropMatch() {
0541: // System.out.println("showDropMatch");
0542: // Element componentRootElement = null;
0543: // Element regionElement = null;
0544: // int dropType = 0;
0545: // WebForm instance = null;
0546: // instance.showDropMatch(componentRootElement, regionElement, dropType);
0547: // // TODO review the generated test code and remove the default call to fail.
0548: // fail("The test case is a prototype.");
0549: // }
0550: //
0551: // /**
0552: // * Test of clearDropMatch method, of class WebForm.
0553: // */
0554: // public void testClearDropMatch() {
0555: // System.out.println("clearDropMatch");
0556: // WebForm instance = null;
0557: // instance.clearDropMatch();
0558: // // TODO review the generated test code and remove the default call to fail.
0559: // fail("The test case is a prototype.");
0560: // }
0561: //
0562: // /**
0563: // * Test of selectComponentDelayed method, of class WebForm.
0564: // */
0565: // public void testSelectComponentDelayed() {
0566: // System.out.println("selectComponentDelayed");
0567: // Element componentRootElement = null;
0568: // WebForm instance = null;
0569: // instance.selectComponentDelayed(componentRootElement);
0570: // // TODO review the generated test code and remove the default call to fail.
0571: // fail("The test case is a prototype.");
0572: // }
0573: //
0574: // /**
0575: // * Test of inlineEditComponents method, of class WebForm.
0576: // */
0577: // public void testInlineEditComponents() {
0578: // System.out.println("inlineEditComponents");
0579: // Element[] componentRootElements = null;
0580: // WebForm instance = null;
0581: // instance.inlineEditComponents(componentRootElements);
0582: // // TODO review the generated test code and remove the default call to fail.
0583: // fail("The test case is a prototype.");
0584: // }
0585: //
0586: // /**
0587: // * Test of getBaseUrl method, of class WebForm.
0588: // */
0589: // public void testGetBaseUrl() {
0590: // System.out.println("getBaseUrl");
0591: // WebForm instance = null;
0592: // URL expResult = null;
0593: // URL result = instance.getBaseUrl();
0594: // assertEquals(expResult, result);
0595: // // TODO review the generated test code and remove the default call to fail.
0596: // fail("The test case is a prototype.");
0597: // }
0598: //
0599: // /**
0600: // * Test of resolveUrl method, of class WebForm.
0601: // */
0602: // public void testResolveUrl() {
0603: // System.out.println("resolveUrl");
0604: // String urlString = "";
0605: // WebForm instance = null;
0606: // URL expResult = null;
0607: // URL result = instance.resolveUrl(urlString);
0608: // assertEquals(expResult, result);
0609: // // TODO review the generated test code and remove the default call to fail.
0610: // fail("The test case is a prototype.");
0611: // }
0612: //
0613: // /**
0614: // * Test of getPaletteController method, of class WebForm.
0615: // */
0616: // public void testGetPaletteController() {
0617: // System.out.println("getPaletteController");
0618: // WebForm instance = null;
0619: // PaletteController expResult = null;
0620: // PaletteController result = instance.getPaletteController();
0621: // assertEquals(expResult, result);
0622: // // TODO review the generated test code and remove the default call to fail.
0623: // fail("The test case is a prototype.");
0624: // }
0625: //
0626: // /**
0627: // * Test of canDropComponentsAtNode method, of class WebForm.
0628: // */
0629: // public void testCanDropComponentsAtNode() {
0630: // System.out.println("canDropComponentsAtNode");
0631: // Element[] componentRootElements = null;
0632: // org.w3c.dom.Node node = null;
0633: // WebForm instance = null;
0634: // boolean expResult = false;
0635: // boolean result = instance.canDropComponentsAtNode(componentRootElements, node);
0636: // assertEquals(expResult, result);
0637: // // TODO review the generated test code and remove the default call to fail.
0638: // fail("The test case is a prototype.");
0639: // }
0640: //
0641: // /**
0642: // * Test of isNormalAndHasFacesComponent method, of class WebForm.
0643: // */
0644: // public void testIsNormalAndHasFacesComponent() {
0645: // System.out.println("isNormalAndHasFacesComponent");
0646: // Element componentRootElement = null;
0647: // WebForm instance = null;
0648: // boolean expResult = false;
0649: // boolean result = instance.isNormalAndHasFacesComponent(componentRootElement);
0650: // assertEquals(expResult, result);
0651: // // TODO review the generated test code and remove the default call to fail.
0652: // fail("The test case is a prototype.");
0653: // }
0654: //
0655: // /**
0656: // * Test of moveComponent method, of class WebForm.
0657: // */
0658: // public void testMoveComponent() {
0659: // System.out.println("moveComponent");
0660: // Element componentRootElement = null;
0661: // org.w3c.dom.Node parentNode = null;
0662: // org.w3c.dom.Node before = null;
0663: // WebForm instance = null;
0664: // boolean expResult = false;
0665: // boolean result = instance.moveComponent(componentRootElement, parentNode, before);
0666: // assertEquals(expResult, result);
0667: // // TODO review the generated test code and remove the default call to fail.
0668: // fail("The test case is a prototype.");
0669: // }
0670: //
0671: // /**
0672: // * Test of getDefaultParentComponent method, of class WebForm.
0673: // */
0674: // public void testGetDefaultParentComponent() {
0675: // System.out.println("getDefaultParentComponent");
0676: // WebForm instance = null;
0677: // Element expResult = null;
0678: // Element result = instance.getDefaultParentComponent();
0679: // assertEquals(expResult, result);
0680: // // TODO review the generated test code and remove the default call to fail.
0681: // fail("The test case is a prototype.");
0682: // }
0683: //
0684: // /**
0685: // * Test of isModelValid method, of class WebForm.
0686: // */
0687: // public void testIsModelValid() {
0688: // System.out.println("isModelValid");
0689: // WebForm instance = null;
0690: // boolean expResult = false;
0691: // boolean result = instance.isModelValid();
0692: // assertEquals(expResult, result);
0693: // // TODO review the generated test code and remove the default call to fail.
0694: // fail("The test case is a prototype.");
0695: // }
0696: //
0697: // /**
0698: // * Test of readLock method, of class WebForm.
0699: // */
0700: // public void testReadLock() {
0701: // System.out.println("readLock");
0702: // WebForm instance = null;
0703: // instance.readLock();
0704: // // TODO review the generated test code and remove the default call to fail.
0705: // fail("The test case is a prototype.");
0706: // }
0707: //
0708: // /**
0709: // * Test of readUnlock method, of class WebForm.
0710: // */
0711: // public void testReadUnlock() {
0712: // System.out.println("readUnlock");
0713: // WebForm instance = null;
0714: // instance.readUnlock();
0715: // // TODO review the generated test code and remove the default call to fail.
0716: // fail("The test case is a prototype.");
0717: // }
0718: //
0719: // /**
0720: // * Test of isModelBusted method, of class WebForm.
0721: // */
0722: // public void testIsModelBusted() {
0723: // System.out.println("isModelBusted");
0724: // WebForm instance = null;
0725: // boolean expResult = false;
0726: // boolean result = instance.isModelBusted();
0727: // assertEquals(expResult, result);
0728: // // TODO review the generated test code and remove the default call to fail.
0729: // fail("The test case is a prototype.");
0730: // }
0731: //
0732: // /**
0733: // * Test of isFormComponent method, of class WebForm.
0734: // */
0735: // public void testIsFormComponent() {
0736: // System.out.println("isFormComponent");
0737: // Element componentRootElement = null;
0738: // WebForm instance = null;
0739: // boolean expResult = false;
0740: // boolean result = instance.isFormComponent(componentRootElement);
0741: // assertEquals(expResult, result);
0742: // // TODO review the generated test code and remove the default call to fail.
0743: // fail("The test case is a prototype.");
0744: // }
0745: //
0746: // /**
0747: // * Test of getDropType method, of class WebForm.
0748: // */
0749: // public void testGetDropType() {
0750: // System.out.println("getDropType");
0751: // Element origDropeeComponentRootElement = null;
0752: // Element droppeeElement = null;
0753: // Transferable t = null;
0754: // boolean linkOnly = false;
0755: // WebForm instance = null;
0756: // int expResult = 0;
0757: // int result = instance.getDropType(origDropeeComponentRootElement, droppeeElement, t, linkOnly);
0758: // assertEquals(expResult, result);
0759: // // TODO review the generated test code and remove the default call to fail.
0760: // fail("The test case is a prototype.");
0761: // }
0762: //
0763: // /**
0764: // * Test of getDropTypeForComponent method, of class WebForm.
0765: // */
0766: // public void testGetDropTypeForComponent() {
0767: // System.out.println("getDropTypeForComponent");
0768: // Element origDropeeComponentRootElement = null;
0769: // Element droppeeElement = null;
0770: // Element componentRootElement = null;
0771: // boolean linkOnly = false;
0772: // WebForm instance = null;
0773: // int expResult = 0;
0774: // int result = instance.getDropTypeForComponent(origDropeeComponentRootElement, droppeeElement, componentRootElement, linkOnly);
0775: // assertEquals(expResult, result);
0776: // // TODO review the generated test code and remove the default call to fail.
0777: // fail("The test case is a prototype.");
0778: // }
0779: //
0780: // /**
0781: // * Test of getComponentRootElementEquivalentTo method, of class WebForm.
0782: // */
0783: // public void testGetComponentRootElementEquivalentTo() {
0784: // System.out.println("getComponentRootElementEquivalentTo");
0785: // Element oldComponentRootElement = null;
0786: // WebForm instance = null;
0787: // Element expResult = null;
0788: // Element result = instance.getComponentRootElementEquivalentTo(oldComponentRootElement);
0789: // assertEquals(expResult, result);
0790: // // TODO review the generated test code and remove the default call to fail.
0791: // fail("The test case is a prototype.");
0792: // }
0793: //
0794: // /**
0795: // * Test of canHighlightComponentRootElement method, of class WebForm.
0796: // */
0797: // public void testCanHighlightComponentRootElement() {
0798: // System.out.println("canHighlightComponentRootElement");
0799: // Element componentRootElement = null;
0800: // WebForm instance = null;
0801: // boolean expResult = false;
0802: // boolean result = instance.canHighlightComponentRootElement(componentRootElement);
0803: // assertEquals(expResult, result);
0804: // // TODO review the generated test code and remove the default call to fail.
0805: // fail("The test case is a prototype.");
0806: // }
0807: //
0808: // /**
0809: // * Test of createInlineEditorSupport method, of class WebForm.
0810: // */
0811: // public void testCreateInlineEditorSupport() {
0812: // System.out.println("createInlineEditorSupport");
0813: // Element componentRootElement = null;
0814: // String propertyName = "";
0815: // WebForm instance = null;
0816: // InlineEditorSupport expResult = null;
0817: // InlineEditorSupport result = instance.createInlineEditorSupport(componentRootElement, propertyName);
0818: // assertEquals(expResult, result);
0819: // // TODO review the generated test code and remove the default call to fail.
0820: // fail("The test case is a prototype.");
0821: // }
0822: //
0823: // /**
0824: // * Test of importString method, of class WebForm.
0825: // */
0826: // public void testImportString() {
0827: // System.out.println("importString");
0828: // String string = "";
0829: // Point canvasPos = null;
0830: // org.w3c.dom.Node documentPosNode = null;
0831: // int documentPosOffset = 0;
0832: // Dimension dimension = null;
0833: // boolean isGrid = false;
0834: // Element droppeeElement = null;
0835: // Element dropeeComponentRootElement = null;
0836: // Element defaultParentComponentRootElement = null;
0837: // WebForm instance = null;
0838: // instance.importString(string, canvasPos, documentPosNode, documentPosOffset, dimension, isGrid, droppeeElement, dropeeComponentRootElement, defaultParentComponentRootElement);
0839: // // TODO review the generated test code and remove the default call to fail.
0840: // fail("The test case is a prototype.");
0841: // }
0842: //
0843: // /**
0844: // * Test of importData method, of class WebForm.
0845: // */
0846: // public void testImportData() {
0847: // System.out.println("importData");
0848: // JComponent comp = null;
0849: // Transferable t = null;
0850: // Point canvasPos = null;
0851: // org.w3c.dom.Node documentPosNode = null;
0852: // int documentPosOffset = 0;
0853: // Dimension dimension = null;
0854: // boolean isGrid = false;
0855: // Element droppeeElement = null;
0856: // Element dropeeComponentRootElement = null;
0857: // Element defaultParentComponentRootElement = null;
0858: // int dropAction = 0;
0859: // WebForm instance = null;
0860: // boolean expResult = false;
0861: // boolean result = instance.importData(comp, t, canvasPos, documentPosNode, documentPosOffset, dimension, isGrid, droppeeElement, dropeeComponentRootElement, defaultParentComponentRootElement, dropAction);
0862: // assertEquals(expResult, result);
0863: // // TODO review the generated test code and remove the default call to fail.
0864: // fail("The test case is a prototype.");
0865: // }
0866: //
0867: // /**
0868: // * Test of startInlineEditing method, of class WebForm.
0869: // */
0870: // public void testStartInlineEditing() {
0871: // System.out.println("startInlineEditing");
0872: // Element componentRootElement = null;
0873: // String propertyName = "";
0874: // WebForm instance = null;
0875: // instance.startInlineEditing(componentRootElement, propertyName);
0876: // // TODO review the generated test code and remove the default call to fail.
0877: // fail("The test case is a prototype.");
0878: // }
0879: //
0880: // /**
0881: // * Test of selectComponent method, of class WebForm.
0882: // */
0883: // public void testSelectComponent() {
0884: // System.out.println("selectComponent");
0885: // Element componentRootElement = null;
0886: // WebForm instance = null;
0887: // instance.selectComponent(componentRootElement);
0888: // // TODO review the generated test code and remove the default call to fail.
0889: // fail("The test case is a prototype.");
0890: // }
0891: //
0892: // /**
0893: // * Test of getSelectedCount method, of class WebForm.
0894: // */
0895: // public void testGetSelectedCount() {
0896: // System.out.println("getSelectedCount");
0897: // WebForm instance = null;
0898: // int expResult = 0;
0899: // int result = instance.getSelectedCount();
0900: // assertEquals(expResult, result);
0901: // // TODO review the generated test code and remove the default call to fail.
0902: // fail("The test case is a prototype.");
0903: // }
0904: //
0905: // /**
0906: // * Test of getSelectedComponents method, of class WebForm.
0907: // */
0908: // public void testGetSelectedComponents() {
0909: // System.out.println("getSelectedComponents");
0910: // WebForm instance = null;
0911: // Element[] expResult = null;
0912: // Element[] result = instance.getSelectedComponents();
0913: // assertEquals(expResult, result);
0914: // // TODO review the generated test code and remove the default call to fail.
0915: // fail("The test case is a prototype.");
0916: // }
0917: //
0918: // /**
0919: // * Test of modelToView method, of class WebForm.
0920: // */
0921: // public void testModelToView() {
0922: // System.out.println("modelToView");
0923: // DomPosition pos = null;
0924: // WebForm instance = null;
0925: // Rectangle expResult = null;
0926: // Rectangle result = instance.modelToView(pos);
0927: // assertEquals(expResult, result);
0928: // // TODO review the generated test code and remove the default call to fail.
0929: // fail("The test case is a prototype.");
0930: // }
0931: //
0932: // /**
0933: // * Test of viewToModel method, of class WebForm.
0934: // */
0935: // public void testViewToModel() {
0936: // System.out.println("viewToModel");
0937: // Point pt = null;
0938: // WebForm instance = null;
0939: // DomPosition expResult = null;
0940: // DomPosition result = instance.viewToModel(pt);
0941: // assertEquals(expResult, result);
0942: // // TODO review the generated test code and remove the default call to fail.
0943: // fail("The test case is a prototype.");
0944: // }
0945: //
0946: // /**
0947: // * Test of isInlineEditing method, of class WebForm.
0948: // */
0949: // public void testIsInlineEditing() {
0950: // System.out.println("isInlineEditing");
0951: // WebForm instance = null;
0952: // boolean expResult = false;
0953: // boolean result = instance.isInlineEditing();
0954: // assertEquals(expResult, result);
0955: // // TODO review the generated test code and remove the default call to fail.
0956: // fail("The test case is a prototype.");
0957: // }
0958: //
0959: // /**
0960: // * Test of createDomPosition method, of class WebForm.
0961: // */
0962: // public void testCreateDomPosition() {
0963: // System.out.println("createDomPosition");
0964: // org.w3c.dom.Node node = null;
0965: // int offset = 0;
0966: // Bias bias = null;
0967: // WebForm instance = null;
0968: // DomPosition expResult = null;
0969: // DomPosition result = instance.createDomPosition(node, offset, bias);
0970: // assertEquals(expResult, result);
0971: // // TODO review the generated test code and remove the default call to fail.
0972: // fail("The test case is a prototype.");
0973: // }
0974: //
0975: // /**
0976: // * Test of createDomRange method, of class WebForm.
0977: // */
0978: // public void testCreateDomRange() {
0979: // System.out.println("createDomRange");
0980: // org.w3c.dom.Node dotNode = null;
0981: // int dotOffset = 0;
0982: // org.w3c.dom.Node markNode = null;
0983: // int markOffset = 0;
0984: // WebForm instance = null;
0985: // DomRange expResult = null;
0986: // DomRange result = instance.createDomRange(dotNode, dotOffset, markNode, markOffset);
0987: // assertEquals(expResult, result);
0988: // // TODO review the generated test code and remove the default call to fail.
0989: // fail("The test case is a prototype.");
0990: // }
0991: //
0992: // /**
0993: // * Test of compareBoundaryPoints method, of class WebForm.
0994: // */
0995: // public void testCompareBoundaryPoints() {
0996: // System.out.println("compareBoundaryPoints");
0997: // org.w3c.dom.Node endPointA = null;
0998: // int offsetA = 0;
0999: // org.w3c.dom.Node endPointB = null;
1000: // int offsetB = 0;
1001: // WebForm instance = null;
1002: // int expResult = 0;
1003: // int result = instance.compareBoundaryPoints(endPointA, offsetA, endPointB, offsetB);
1004: // assertEquals(expResult, result);
1005: // // TODO review the generated test code and remove the default call to fail.
1006: // fail("The test case is a prototype.");
1007: // }
1008: //
1009: // /**
1010: // * Test of first method, of class WebForm.
1011: // */
1012: // public void testFirst() {
1013: // System.out.println("first");
1014: // DomPosition dot = null;
1015: // DomPosition mark = null;
1016: // WebForm instance = null;
1017: // DomPosition expResult = null;
1018: // DomPosition result = instance.first(dot, mark);
1019: // assertEquals(expResult, result);
1020: // // TODO review the generated test code and remove the default call to fail.
1021: // fail("The test case is a prototype.");
1022: // }
1023: //
1024: // /**
1025: // * Test of last method, of class WebForm.
1026: // */
1027: // public void testLast() {
1028: // System.out.println("last");
1029: // DomPosition dot = null;
1030: // DomPosition mark = null;
1031: // WebForm instance = null;
1032: // DomPosition expResult = null;
1033: // DomPosition result = instance.last(dot, mark);
1034: // assertEquals(expResult, result);
1035: // // TODO review the generated test code and remove the default call to fail.
1036: // fail("The test case is a prototype.");
1037: // }
1038: //
1039: // /**
1040: // * Test of findExternalForm method, of class WebForm.
1041: // */
1042: // public void testFindExternalForm() {
1043: // System.out.println("findExternalForm");
1044: // URL url = null;
1045: // WebForm instance = null;
1046: // WebForm expResult = null;
1047: // WebForm result = instance.findExternalForm(url);
1048: // assertEquals(expResult, result);
1049: // // TODO review the generated test code and remove the default call to fail.
1050: // fail("The test case is a prototype.");
1051: // }
1052: //
1053: // /**
1054: // * Test of reuseCssStyle method, of class WebForm.
1055: // */
1056: // public void testReuseCssStyle() {
1057: // System.out.println("reuseCssStyle");
1058: // WebForm webForm = null;
1059: // WebForm instance = null;
1060: // instance.reuseCssStyle(webForm);
1061: // // TODO review the generated test code and remove the default call to fail.
1062: // fail("The test case is a prototype.");
1063: // }
1064: //
1065: // /**
1066: // * Test of findBox method, of class WebForm.
1067: // */
1068: // public void testFindBox() {
1069: // System.out.println("findBox");
1070: // int x = 0;
1071: // int y = 0;
1072: // WebForm instance = null;
1073: // Box expResult = null;
1074: // Box result = instance.findBox(x, y);
1075: // assertEquals(expResult, result);
1076: // // TODO review the generated test code and remove the default call to fail.
1077: // fail("The test case is a prototype.");
1078: // }
1079: //
1080: // /**
1081: // * Test of findBoxForSourceElement method, of class WebForm.
1082: // */
1083: // public void testFindBoxForSourceElement() {
1084: // System.out.println("findBoxForSourceElement");
1085: // Element sourceElement = null;
1086: // WebForm instance = null;
1087: // Box expResult = null;
1088: // Box result = instance.findBoxForSourceElement(sourceElement);
1089: // assertEquals(expResult, result);
1090: // // TODO review the generated test code and remove the default call to fail.
1091: // fail("The test case is a prototype.");
1092: // }
1093: //
1094: // /**
1095: // * Test of findBoxForComponentRootElement method, of class WebForm.
1096: // */
1097: // public void testFindBoxForComponentRootElement() {
1098: // System.out.println("findBoxForComponentRootElement");
1099: // Element componentRootElement = null;
1100: // WebForm instance = null;
1101: // Box expResult = null;
1102: // Box result = instance.findBoxForComponentRootElement(componentRootElement);
1103: // assertEquals(expResult, result);
1104: // // TODO review the generated test code and remove the default call to fail.
1105: // fail("The test case is a prototype.");
1106: // }
1107: //
1108: // /**
1109: // * Test of findBoxForElement method, of class WebForm.
1110: // */
1111: // public void testFindBoxForElement() {
1112: // System.out.println("findBoxForElement");
1113: // Element element = null;
1114: // WebForm instance = null;
1115: // Box expResult = null;
1116: // Box result = instance.findBoxForElement(element);
1117: // assertEquals(expResult, result);
1118: // // TODO review the generated test code and remove the default call to fail.
1119: // fail("The test case is a prototype.");
1120: // }
1121: //
1122: // /**
1123: // * Test of getPrimarySelectedComponent method, of class WebForm.
1124: // */
1125: // public void testGetPrimarySelectedComponent() {
1126: // System.out.println("getPrimarySelectedComponent");
1127: // WebForm instance = null;
1128: // Element expResult = null;
1129: // Element result = instance.getPrimarySelectedComponent();
1130: // assertEquals(expResult, result);
1131: // // TODO review the generated test code and remove the default call to fail.
1132: // fail("The test case is a prototype.");
1133: // }
1134: //
1135: // /**
1136: // * Test of computeNextPosition method, of class WebForm.
1137: // */
1138: // public void testComputeNextPosition() {
1139: // System.out.println("computeNextPosition");
1140: // DomPosition pos = null;
1141: // WebForm instance = null;
1142: // DomPosition expResult = null;
1143: // DomPosition result = instance.computeNextPosition(pos);
1144: // assertEquals(expResult, result);
1145: // // TODO review the generated test code and remove the default call to fail.
1146: // fail("The test case is a prototype.");
1147: // }
1148: //
1149: // /**
1150: // * Test of computePreviousPosition method, of class WebForm.
1151: // */
1152: // public void testComputePreviousPosition() {
1153: // System.out.println("computePreviousPosition");
1154: // DomPosition pos = null;
1155: // WebForm instance = null;
1156: // DomPosition expResult = null;
1157: // DomPosition result = instance.computePreviousPosition(pos);
1158: // assertEquals(expResult, result);
1159: // // TODO review the generated test code and remove the default call to fail.
1160: // fail("The test case is a prototype.");
1161: // }
1162: //
1163: // /**
1164: // * Test of isInsideEditableRegion method, of class WebForm.
1165: // */
1166: // public void testIsInsideEditableRegion() {
1167: // System.out.println("isInsideEditableRegion");
1168: // DomPosition pos = null;
1169: // WebForm instance = null;
1170: // boolean expResult = false;
1171: // boolean result = instance.isInsideEditableRegion(pos);
1172: // assertEquals(expResult, result);
1173: // // TODO review the generated test code and remove the default call to fail.
1174: // fail("The test case is a prototype.");
1175: // }
1176: //
1177: // /**
1178: // * Test of finishInlineEditing method, of class WebForm.
1179: // */
1180: // public void testFinishInlineEditing() {
1181: // System.out.println("finishInlineEditing");
1182: // boolean cancel = false;
1183: // WebForm instance = null;
1184: // instance.finishInlineEditing(cancel);
1185: // // TODO review the generated test code and remove the default call to fail.
1186: // fail("The test case is a prototype.");
1187: // }
1188: //
1189: // /**
1190: // * Test of invokeDeleteNextCharAction method, of class WebForm.
1191: // */
1192: // public void testInvokeDeleteNextCharAction() {
1193: // System.out.println("invokeDeleteNextCharAction");
1194: // ActionEvent evt = null;
1195: // WebForm instance = null;
1196: // instance.invokeDeleteNextCharAction(evt);
1197: // // TODO review the generated test code and remove the default call to fail.
1198: // fail("The test case is a prototype.");
1199: // }
1200: //
1201: // /**
1202: // * Test of inlineCopyText method, of class WebForm.
1203: // */
1204: // public void testInlineCopyText() {
1205: // System.out.println("inlineCopyText");
1206: // boolean isCut = false;
1207: // WebForm instance = null;
1208: // Transferable expResult = null;
1209: // Transferable result = instance.inlineCopyText(isCut);
1210: // assertEquals(expResult, result);
1211: // // TODO review the generated test code and remove the default call to fail.
1212: // fail("The test case is a prototype.");
1213: // }
1214: //
1215: // /**
1216: // * Test of getPrimarySelection method, of class WebForm.
1217: // */
1218: // public void testGetPrimarySelection() {
1219: // System.out.println("getPrimarySelection");
1220: // WebForm instance = null;
1221: // Element expResult = null;
1222: // Element result = instance.getPrimarySelection();
1223: // assertEquals(expResult, result);
1224: // // TODO review the generated test code and remove the default call to fail.
1225: // fail("The test case is a prototype.");
1226: // }
1227: //
1228: // /**
1229: // * Test of getSelectedContainer method, of class WebForm.
1230: // */
1231: // public void testGetSelectedContainer() {
1232: // System.out.println("getSelectedContainer");
1233: // WebForm instance = null;
1234: // Element expResult = null;
1235: // Element result = instance.getSelectedContainer();
1236: // assertEquals(expResult, result);
1237: // // TODO review the generated test code and remove the default call to fail.
1238: // fail("The test case is a prototype.");
1239: // }
1240: //
1241: // /**
1242: // * Test of setSelectedComponents method, of class WebForm.
1243: // */
1244: // public void testSetSelectedComponents() {
1245: // System.out.println("setSelectedComponents");
1246: // Element[] componentRootElements = null;
1247: // boolean update = false;
1248: // WebForm instance = null;
1249: // instance.setSelectedComponents(componentRootElements, update);
1250: // // TODO review the generated test code and remove the default call to fail.
1251: // fail("The test case is a prototype.");
1252: // }
1253: //
1254: // /**
1255: // * Test of clearSelection method, of class WebForm.
1256: // */
1257: // public void testClearSelection() {
1258: // System.out.println("clearSelection");
1259: // boolean update = false;
1260: // WebForm instance = null;
1261: // instance.clearSelection(update);
1262: // // TODO review the generated test code and remove the default call to fail.
1263: // fail("The test case is a prototype.");
1264: // }
1265: //
1266: // /**
1267: // * Test of syncSelection method, of class WebForm.
1268: // */
1269: // public void testSyncSelection() {
1270: // System.out.println("syncSelection");
1271: // boolean update = false;
1272: // WebForm instance = null;
1273: // instance.syncSelection(update);
1274: // // TODO review the generated test code and remove the default call to fail.
1275: // fail("The test case is a prototype.");
1276: // }
1277: //
1278: // /**
1279: // * Test of updateSelectedNodes method, of class WebForm.
1280: // */
1281: // public void testUpdateSelectedNodes() {
1282: // System.out.println("updateSelectedNodes");
1283: // WebForm instance = null;
1284: // instance.updateSelectedNodes();
1285: // // TODO review the generated test code and remove the default call to fail.
1286: // fail("The test case is a prototype.");
1287: // }
1288: //
1289: // /**
1290: // * Test of getPageBox method, of class WebForm.
1291: // */
1292: // public void testGetPageBox() {
1293: // System.out.println("getPageBox");
1294: // WebForm instance = null;
1295: // Box expResult = null;
1296: // Box result = instance.getPageBox();
1297: // assertEquals(expResult, result);
1298: // // TODO review the generated test code and remove the default call to fail.
1299: // fail("The test case is a prototype.");
1300: // }
1301: //
1302: // /**
1303: // * Test of getPastePoint method, of class WebForm.
1304: // */
1305: // public void testGetPastePoint() {
1306: // System.out.println("getPastePoint");
1307: // WebForm instance = null;
1308: // Point expResult = null;
1309: // Point result = instance.getPastePoint();
1310: // assertEquals(expResult, result);
1311: // // TODO review the generated test code and remove the default call to fail.
1312: // fail("The test case is a prototype.");
1313: // }
1314: //
1315: // /**
1316: // * Test of getPaneActionMap method, of class WebForm.
1317: // */
1318: // public void testGetPaneActionMap() {
1319: // System.out.println("getPaneActionMap");
1320: // WebForm instance = null;
1321: // ActionMap expResult = null;
1322: // ActionMap result = instance.getPaneActionMap();
1323: // assertEquals(expResult, result);
1324: // // TODO review the generated test code and remove the default call to fail.
1325: // fail("The test case is a prototype.");
1326: // }
1327: //
1328: // /**
1329: // * Test of paneRequestFocus method, of class WebForm.
1330: // */
1331: // public void testPaneRequestFocus() {
1332: // System.out.println("paneRequestFocus");
1333: // WebForm instance = null;
1334: // instance.paneRequestFocus();
1335: // // TODO review the generated test code and remove the default call to fail.
1336: // fail("The test case is a prototype.");
1337: // }
1338: //
1339: // /**
1340: // * Test of createPaneComponent method, of class WebForm.
1341: // */
1342: // public void testCreatePaneComponent() {
1343: // System.out.println("createPaneComponent");
1344: // WebForm instance = null;
1345: // JComponent expResult = null;
1346: // JComponent result = instance.createPaneComponent();
1347: // assertEquals(expResult, result);
1348: // // TODO review the generated test code and remove the default call to fail.
1349: // fail("The test case is a prototype.");
1350: // }
1351: //
1352: // /**
1353: // * Test of updatePaneViewPort method, of class WebForm.
1354: // */
1355: // public void testUpdatePaneViewPort() {
1356: // System.out.println("updatePaneViewPort");
1357: // WebForm instance = null;
1358: // instance.updatePaneViewPort();
1359: // // TODO review the generated test code and remove the default call to fail.
1360: // fail("The test case is a prototype.");
1361: // }
1362: //
1363: // /**
1364: // * Test of hasPaneCaret method, of class WebForm.
1365: // */
1366: // public void testHasPaneCaret() {
1367: // System.out.println("hasPaneCaret");
1368: // WebForm instance = null;
1369: // boolean expResult = false;
1370: // boolean result = instance.hasPaneCaret();
1371: // assertEquals(expResult, result);
1372: // // TODO review the generated test code and remove the default call to fail.
1373: // fail("The test case is a prototype.");
1374: // }
1375: //
1376: // /**
1377: // * Test of getPaneCaretRange method, of class WebForm.
1378: // */
1379: // public void testGetPaneCaretRange() {
1380: // System.out.println("getPaneCaretRange");
1381: // WebForm instance = null;
1382: // DomRange expResult = null;
1383: // DomRange result = instance.getPaneCaretRange();
1384: // assertEquals(expResult, result);
1385: // // TODO review the generated test code and remove the default call to fail.
1386: // fail("The test case is a prototype.");
1387: // }
1388: //
1389: // /**
1390: // * Test of setPaneCaret method, of class WebForm.
1391: // */
1392: // public void testSetPaneCaret() {
1393: // System.out.println("setPaneCaret");
1394: // DomPosition pos = null;
1395: // WebForm instance = null;
1396: // instance.setPaneCaret(pos);
1397: // // TODO review the generated test code and remove the default call to fail.
1398: // fail("The test case is a prototype.");
1399: // }
1400: //
1401: // /**
1402: // * Test of resetPanePageBox method, of class WebForm.
1403: // */
1404: // public void testResetPanePageBox() {
1405: // System.out.println("resetPanePageBox");
1406: // WebForm instance = null;
1407: // instance.resetPanePageBox();
1408: // // TODO review the generated test code and remove the default call to fail.
1409: // fail("The test case is a prototype.");
1410: // }
1411: //
1412: // /**
1413: // * Test of redoPaneLayout method, of class WebForm.
1414: // */
1415: // public void testRedoPaneLayout() {
1416: // System.out.println("redoPaneLayout");
1417: // boolean immediate = false;
1418: // WebForm instance = null;
1419: // instance.redoPaneLayout(immediate);
1420: // // TODO review the generated test code and remove the default call to fail.
1421: // fail("The test case is a prototype.");
1422: // }
1423: //
1424: // /**
1425: // * Test of isRenderedNode method, of class WebForm.
1426: // */
1427: // public void testIsRenderedNode() {
1428: // System.out.println("isRenderedNode");
1429: // org.w3c.dom.Node node = null;
1430: // WebForm instance = null;
1431: // boolean expResult = false;
1432: // boolean result = instance.isRenderedNode(node);
1433: // assertEquals(expResult, result);
1434: // // TODO review the generated test code and remove the default call to fail.
1435: // fail("The test case is a prototype.");
1436: // }
1437: //
1438: // /**
1439: // * Test of addDesignerListener method, of class WebForm.
1440: // */
1441: // public void testAddDesignerListener() {
1442: // System.out.println("addDesignerListener");
1443: // DesignerListener l = null;
1444: // WebForm instance = null;
1445: // instance.addDesignerListener(l);
1446: // // TODO review the generated test code and remove the default call to fail.
1447: // fail("The test case is a prototype.");
1448: // }
1449: //
1450: // /**
1451: // * Test of removeDesignerListener method, of class WebForm.
1452: // */
1453: // public void testRemoveDesignerListener() {
1454: // System.out.println("removeDesignerListener");
1455: // DesignerListener l = null;
1456: // WebForm instance = null;
1457: // instance.removeDesignerListener(l);
1458: // // TODO review the generated test code and remove the default call to fail.
1459: // fail("The test case is a prototype.");
1460: // }
1461: //
1462: // /**
1463: // * Test of fireUserActionPerformed method, of class WebForm.
1464: // */
1465: // public void testFireUserActionPerformed() {
1466: // System.out.println("fireUserActionPerformed");
1467: // DesignerEvent evt = null;
1468: // WebForm instance = null;
1469: // instance.fireUserActionPerformed(evt);
1470: // // TODO review the generated test code and remove the default call to fail.
1471: // fail("The test case is a prototype.");
1472: // }
1473: //
1474: // /**
1475: // * Test of fireUserPopupActionPerformed method, of class WebForm.
1476: // */
1477: // public void testFireUserPopupActionPerformed() {
1478: // System.out.println("fireUserPopupActionPerformed");
1479: // DesignerPopupEvent evt = null;
1480: // WebForm instance = null;
1481: // instance.fireUserPopupActionPerformed(evt);
1482: // // TODO review the generated test code and remove the default call to fail.
1483: // fail("The test case is a prototype.");
1484: // }
1485: //
1486: // /**
1487: // * Test of fireUserElementClicked method, of class WebForm.
1488: // */
1489: // public void testFireUserElementClicked() {
1490: // System.out.println("fireUserElementClicked");
1491: // DesignerClickEvent evt = null;
1492: // WebForm instance = null;
1493: // instance.fireUserElementClicked(evt);
1494: // // TODO review the generated test code and remove the default call to fail.
1495: // fail("The test case is a prototype.");
1496: // }
1497: //
1498: // /**
1499: // * Test of fireSelectionChanged method, of class WebForm.
1500: // */
1501: // public void testFireSelectionChanged() {
1502: // System.out.println("fireSelectionChanged");
1503: // DesignerEvent evt = null;
1504: // WebForm instance = null;
1505: // instance.fireSelectionChanged(evt);
1506: // // TODO review the generated test code and remove the default call to fail.
1507: // fail("The test case is a prototype.");
1508: // }
1509: //
1510: // /**
1511: // * Test of paintDesignerDecorations method, of class WebForm.
1512: // */
1513: // public void testPaintDesignerDecorations() {
1514: // System.out.println("paintDesignerDecorations");
1515: // Graphics2D g = null;
1516: // WebForm instance = null;
1517: // instance.paintDesignerDecorations(g);
1518: // // TODO review the generated test code and remove the default call to fail.
1519: // fail("The test case is a prototype.");
1520: // }
1521: //
1522: // /**
1523: // * Test of createRenderContext method, of class WebForm.
1524: // */
1525: // public void testCreateRenderContext() {
1526: // System.out.println("createRenderContext");
1527: // WebForm instance = null;
1528: // RenderContext expResult = null;
1529: // RenderContext result = instance.createRenderContext();
1530: // assertEquals(expResult, result);
1531: // // TODO review the generated test code and remove the default call to fail.
1532: // fail("The test case is a prototype.");
1533: // }
1534: //
1535: // /**
1536: // * Test of setPaintSizeMask method, of class WebForm.
1537: // */
1538: // public void testSetPaintSizeMask() {
1539: // System.out.println("setPaintSizeMask");
1540: // boolean paintSizeMask = false;
1541: // WebForm instance = null;
1542: // instance.setPaintSizeMask(paintSizeMask);
1543: // // TODO review the generated test code and remove the default call to fail.
1544: // fail("The test case is a prototype.");
1545: // }
1546: //
1547: // /**
1548: // * Test of isPaintSizeMask method, of class WebForm.
1549: // */
1550: // public void testIsPaintSizeMask() {
1551: // System.out.println("isPaintSizeMask");
1552: // WebForm instance = null;
1553: // boolean expResult = false;
1554: // boolean result = instance.isPaintSizeMask();
1555: // assertEquals(expResult, result);
1556: // // TODO review the generated test code and remove the default call to fail.
1557: // fail("The test case is a prototype.");
1558: // }
1559: //
1560: // /**
1561: // * Test of getDecoration method, of class WebForm.
1562: // */
1563: // public void testGetDecoration() {
1564: // System.out.println("getDecoration");
1565: // Element element = null;
1566: // WebForm instance = null;
1567: // Decoration expResult = null;
1568: // Decoration result = instance.getDecoration(element);
1569: // assertEquals(expResult, result);
1570: // // TODO review the generated test code and remove the default call to fail.
1571: // fail("The test case is a prototype.");
1572: // }
1573: //
1574: // /**
1575: // * Test of isShowDecorations method, of class WebForm.
1576: // */
1577: // public void testIsShowDecorations() {
1578: // System.out.println("isShowDecorations");
1579: // WebForm instance = null;
1580: // boolean expResult = false;
1581: // boolean result = instance.isShowDecorations();
1582: // assertEquals(expResult, result);
1583: // // TODO review the generated test code and remove the default call to fail.
1584: // fail("The test case is a prototype.");
1585: // }
1586: //
1587: // /**
1588: // * Test of getDefaultFontSize method, of class WebForm.
1589: // */
1590: // public void testGetDefaultFontSize() {
1591: // System.out.println("getDefaultFontSize");
1592: // WebForm instance = null;
1593: // int expResult = 0;
1594: // int result = instance.getDefaultFontSize();
1595: // assertEquals(expResult, result);
1596: // // TODO review the generated test code and remove the default call to fail.
1597: // fail("The test case is a prototype.");
1598: // }
1599: //
1600: // /**
1601: // * Test of getPageSizeWidth method, of class WebForm.
1602: // */
1603: // public void testGetPageSizeWidth() {
1604: // System.out.println("getPageSizeWidth");
1605: // WebForm instance = null;
1606: // int expResult = 0;
1607: // int result = instance.getPageSizeWidth();
1608: // assertEquals(expResult, result);
1609: // // TODO review the generated test code and remove the default call to fail.
1610: // fail("The test case is a prototype.");
1611: // }
1612: //
1613: // /**
1614: // * Test of getPageSizeHeight method, of class WebForm.
1615: // */
1616: // public void testGetPageSizeHeight() {
1617: // System.out.println("getPageSizeHeight");
1618: // WebForm instance = null;
1619: // int expResult = 0;
1620: // int result = instance.getPageSizeHeight();
1621: // assertEquals(expResult, result);
1622: // // TODO review the generated test code and remove the default call to fail.
1623: // fail("The test case is a prototype.");
1624: // }
1625: //
1626: // /**
1627: // * Test of isGridShow method, of class WebForm.
1628: // */
1629: // public void testIsGridShow() {
1630: // System.out.println("isGridShow");
1631: // WebForm instance = null;
1632: // boolean expResult = false;
1633: // boolean result = instance.isGridShow();
1634: // assertEquals(expResult, result);
1635: // // TODO review the generated test code and remove the default call to fail.
1636: // fail("The test case is a prototype.");
1637: // }
1638: //
1639: // /**
1640: // * Test of isGridSnap method, of class WebForm.
1641: // */
1642: // public void testIsGridSnap() {
1643: // System.out.println("isGridSnap");
1644: // WebForm instance = null;
1645: // boolean expResult = false;
1646: // boolean result = instance.isGridSnap();
1647: // assertEquals(expResult, result);
1648: // // TODO review the generated test code and remove the default call to fail.
1649: // fail("The test case is a prototype.");
1650: // }
1651: //
1652: // /**
1653: // * Test of getGridWidth method, of class WebForm.
1654: // */
1655: // public void testGetGridWidth() {
1656: // System.out.println("getGridWidth");
1657: // WebForm instance = null;
1658: // int expResult = 0;
1659: // int result = instance.getGridWidth();
1660: // assertEquals(expResult, result);
1661: // // TODO review the generated test code and remove the default call to fail.
1662: // fail("The test case is a prototype.");
1663: // }
1664: //
1665: // /**
1666: // * Test of getGridHeight method, of class WebForm.
1667: // */
1668: // public void testGetGridHeight() {
1669: // System.out.println("getGridHeight");
1670: // WebForm instance = null;
1671: // int expResult = 0;
1672: // int result = instance.getGridHeight();
1673: // assertEquals(expResult, result);
1674: // // TODO review the generated test code and remove the default call to fail.
1675: // fail("The test case is a prototype.");
1676: // }
1677: //
1678: // /**
1679: // * Test of getGridTraceWidth method, of class WebForm.
1680: // */
1681: // public void testGetGridTraceWidth() {
1682: // System.out.println("getGridTraceWidth");
1683: // WebForm instance = null;
1684: // int expResult = 0;
1685: // int result = instance.getGridTraceWidth();
1686: // assertEquals(expResult, result);
1687: // // TODO review the generated test code and remove the default call to fail.
1688: // fail("The test case is a prototype.");
1689: // }
1690: //
1691: // /**
1692: // * Test of getGridTraceHeight method, of class WebForm.
1693: // */
1694: // public void testGetGridTraceHeight() {
1695: // System.out.println("getGridTraceHeight");
1696: // WebForm instance = null;
1697: // int expResult = 0;
1698: // int result = instance.getGridTraceHeight();
1699: // assertEquals(expResult, result);
1700: // // TODO review the generated test code and remove the default call to fail.
1701: // fail("The test case is a prototype.");
1702: // }
1703: //
1704: // /**
1705: // * Test of getGridOffset method, of class WebForm.
1706: // */
1707: // public void testGetGridOffset() {
1708: // System.out.println("getGridOffset");
1709: // WebForm instance = null;
1710: // int expResult = 0;
1711: // int result = instance.getGridOffset();
1712: // assertEquals(expResult, result);
1713: // // TODO review the generated test code and remove the default call to fail.
1714: // fail("The test case is a prototype.");
1715: // }
1716: //
1717: // /**
1718: // * Test of adjustX method, of class WebForm.
1719: // */
1720: // public void testAdjustX() {
1721: // System.out.println("adjustX");
1722: // int x = 0;
1723: // WebForm instance = null;
1724: // int expResult = 0;
1725: // int result = instance.adjustX(x);
1726: // assertEquals(expResult, result);
1727: // // TODO review the generated test code and remove the default call to fail.
1728: // fail("The test case is a prototype.");
1729: // }
1730: //
1731: // /**
1732: // * Test of adjustY method, of class WebForm.
1733: // */
1734: // public void testAdjustY() {
1735: // System.out.println("adjustY");
1736: // int y = 0;
1737: // WebForm instance = null;
1738: // int expResult = 0;
1739: // int result = instance.adjustY(y);
1740: // assertEquals(expResult, result);
1741: // // TODO review the generated test code and remove the default call to fail.
1742: // fail("The test case is a prototype.");
1743: // }
1744: //
1745: // /**
1746: // * Test of snapX method, of class WebForm.
1747: // */
1748: // public void testSnapX() {
1749: // System.out.println("snapX");
1750: // int x = 0;
1751: // Box parent = null;
1752: // WebForm instance = null;
1753: // int expResult = 0;
1754: // int result = instance.snapX(x, parent);
1755: // assertEquals(expResult, result);
1756: // // TODO review the generated test code and remove the default call to fail.
1757: // fail("The test case is a prototype.");
1758: // }
1759: //
1760: // /**
1761: // * Test of snapY method, of class WebForm.
1762: // */
1763: // public void testSnapY() {
1764: // System.out.println("snapY");
1765: // int y = 0;
1766: // Box parent = null;
1767: // WebForm instance = null;
1768: // int expResult = 0;
1769: // int result = instance.snapY(y, parent);
1770: // assertEquals(expResult, result);
1771: // // TODO review the generated test code and remove the default call to fail.
1772: // fail("The test case is a prototype.");
1773: // }
1774: //
1775: // /**
1776: // * Test of setInitialFocusMarkCssBox method, of class WebForm.
1777: // */
1778: // public void testSetInitialFocusMarkCssBox() {
1779: // System.out.println("setInitialFocusMarkCssBox");
1780: // CssBox cssBox = null;
1781: // WebForm instance = null;
1782: // instance.setInitialFocusMarkCssBox(cssBox);
1783: // // TODO review the generated test code and remove the default call to fail.
1784: // fail("The test case is a prototype.");
1785: // }
1786: //
1787: // /**
1788: // * Test of getInitialFocusMarkCssBox method, of class WebForm.
1789: // */
1790: // public void testGetInitialFocusMarkCssBox() {
1791: // System.out.println("getInitialFocusMarkCssBox");
1792: // WebForm instance = null;
1793: // CssBox expResult = null;
1794: // CssBox result = instance.getInitialFocusMarkCssBox();
1795: // assertEquals(expResult, result);
1796: // // TODO review the generated test code and remove the default call to fail.
1797: // fail("The test case is a prototype.");
1798: // }
1799:
1800: }
|