|
What this is
Other links
The source code//This file was automaticaly generated. Do not modify. /* * 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-2001 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.test.editor.app.tests; import java.io.PrintWriter; import org.openide.filesystems.*; import org.netbeans.junit.NbTestCase; import org.netbeans.junit.NbTestSuite; import java.io.File; import org.netbeans.test.editor.LineDiff; /** * * @author ehucka * @version 1.1 * Test of invoking CC. */ public class CompletionPerformer extends NbTestCase { public CompletionPerformer(String name) { super(name); } public void tearDown() throws Exception { assertFile("Output does not match golden file.", getGoldenFile(), new File(getWorkDir(), this.getName() + ".ref"), new File(getWorkDir(), this.getName() + ".diff"), new LineDiff(false)); } /** * Call Action: FooClass * Sub Test: BasicTests * Author: ehucka * Version: 1.1 * Comment: Test of invoking CC. */ public void testFooClass() throws Exception { PrintWriter ref = null; PrintWriter log = null; String[] arguments = new String[] { "/org/netbeans/test/editor/app/tests/completion.xml", "BasicTests.FooClass" }; try { ref = new PrintWriter(getRef()); log = new PrintWriter(getLog()); new CallTestGeneric().runTest(arguments, log, ref); } finally { if (ref != null) ref.flush(); if (log != null) log.flush(); } } /** * Call Action: ObjectMethods * Sub Test: BasicTests * Author: ehucka * Version: 1.1 * Comment: Test of invoking CC. */ public void testObjectMethods() throws Exception { PrintWriter ref = null; PrintWriter log = null; String[] arguments = new String[] { "/org/netbeans/test/editor/app/tests/completion.xml", "BasicTests.ObjectMethods" }; try { ref = new PrintWriter(getRef()); log = new PrintWriter(getLog()); new CallTestGeneric().runTest(arguments, log, ref); } finally { if (ref != null) ref.flush(); if (log != null) log.flush(); } } /** * Call Action: RetypeClass * Sub Test: BasicTests * Author: ehucka * Version: 1.1 * Comment: Test of invoking CC. */ public void testRetypeClass() throws Exception { PrintWriter ref = null; PrintWriter log = null; String[] arguments = new String[] { "/org/netbeans/test/editor/app/tests/completion.xml", "BasicTests.RetypeClass" }; try { ref = new PrintWriter(getRef()); log = new PrintWriter(getLog()); new CallTestGeneric().runTest(arguments, log, ref); } finally { if (ref != null) ref.flush(); if (log != null) log.flush(); } } /** * Call Action: StayInvoked * Sub Test: BasicTests * Author: ehucka * Version: 1.1 * Comment: Test of invoking CC. */ public void testStayInvoked() throws Exception { PrintWriter ref = null; PrintWriter log = null; String[] arguments = new String[] { "/org/netbeans/test/editor/app/tests/completion.xml", "BasicTests.StayInvoked" }; try { ref = new PrintWriter(getRef()); log = new PrintWriter(getLog()); new CallTestGeneric().runTest(arguments, log, ref); } finally { if (ref != null) ref.flush(); if (log != null) log.flush(); } } /** * Call Action: CaseInsensitive * Sub Test: Settings * Author: ehucka * Version: 1.1 * Comment: This test will fails depend on issue 29406. */ public void testCaseInsensitive() throws Exception { PrintWriter ref = null; PrintWriter log = null; String[] arguments = new String[] { "/org/netbeans/test/editor/app/tests/completion.xml", "Settings.CaseInsensitive" }; try { ref = new PrintWriter(getRef()); log = new PrintWriter(getLog()); new CallTestGeneric().runTest(arguments, log, ref); } finally { if (ref != null) ref.flush(); if (log != null) log.flush(); } } /** * Call Action: InstantSubstitution * Sub Test: Settings * Author: ehucka * Version: 1.1 * Comment: This test will fails depend on issue 29406. */ public void testInstantSubstitution() throws Exception { PrintWriter ref = null; PrintWriter log = null; String[] arguments = new String[] { "/org/netbeans/test/editor/app/tests/completion.xml", "Settings.InstantSubstitution" }; try { ref = new PrintWriter(getRef()); log = new PrintWriter(getLog()); new CallTestGeneric().runTest(arguments, log, ref); } finally { if (ref != null) ref.flush(); if (log != null) log.flush(); } } /** * Call Action: CCAfterMethods * Sub Test: Issues * Author: ehucka * Version: 1.1 * Comment: It tests issues 28055. */ public void testCCAfterMethods() throws Exception { PrintWriter ref = null; PrintWriter log = null; String[] arguments = new String[] { "/org/netbeans/test/editor/app/tests/completion.xml", "Issues.CCAfterMethods" }; try { ref = new PrintWriter(getRef()); log = new PrintWriter(getLog()); new CallTestGeneric().runTest(arguments, log, ref); } finally { if (ref != null) ref.flush(); if (log != null) log.flush(); } } /** * Call Action: PackageCC * Sub Test: Issues * Author: ehucka * Version: 1.1 * Comment: It tests issues 28055. */ public void testPackageCC() throws Exception { PrintWriter ref = null; PrintWriter log = null; String[] arguments = new String[] { "/org/netbeans/test/editor/app/tests/completion.xml", "Issues.PackageCC" }; try { ref = new PrintWriter(getRef()); log = new PrintWriter(getLog()); new CallTestGeneric().runTest(arguments, log, ref); } finally { if (ref != null) ref.flush(); if (log != null) log.flush(); } } /** * Call Action: BasicHTML * Sub Test: HTMLCompletion * Author: ehucka * Version: 1.1 * Comment: Basic test of HTML CC. */ public void testBasicHTML() throws Exception { PrintWriter ref = null; PrintWriter log = null; String[] arguments = new String[] { "/org/netbeans/test/editor/app/tests/completion.xml", "HTMLCompletion.BasicHTML" }; try { ref = new PrintWriter(getRef()); log = new PrintWriter(getLog()); new CallTestGeneric().runTest(arguments, log, ref); } finally { if (ref != null) ref.flush(); if (log != null) log.flush(); } } } |
... 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.