|
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.modules.web.jspparser; import java.io.File; import java.io.IOException; import java.io.PrintStream; import java.util.StringTokenizer; import junit.framework.*; import org.netbeans.junit.*; import org.netbeans.modules.web.jsps.parserapi.JspParserAPI; import org.netbeans.modules.web.jsps.parserapi.JspParserFactory; import org.openide.filesystems.FileObject; import org.openide.filesystems.FileUtil; import org.openide.filesystems.Repository; /** JUnit test suite with Jemmy support * * @author pj97932 * @version 1.0 */ public class ParserPresentTest extends NbTestCase { /** constructor required by JUnit * @param testName method name to be used as testcase */ public ParserPresentTest(String testName) { super(testName); } /** method used for explicit testsuite definition */ public static junit.framework.Test suite() { TestSuite suite = new NbTestSuite(ParserPresentTest.class); return suite; } public void testParserPresent() throws IOException { JspParserAPI api = JspParserFactory.getJspParser(); assertNotNull(api); } public void testSameInstance() throws IOException { JspParserAPI api1 = JspParserFactory.getJspParser(); JspParserAPI api2 = JspParserFactory.getJspParser(); log(api1.toString()); log(api2.toString()); assertSame("JSP parser instance should be the same all the time", api1, api2); } /** method called before each testcase */ protected void setUp() throws IOException { } /** method called after each testcase |
... 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.