KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > editor > app > tests > AbbreviationsPerformer


1 //This file was automaticaly generated. Do not modify.
2
/*
3  * The contents of this file are subject to the terms of the Common Development
4  * and Distribution License (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
8  * or http://www.netbeans.org/cddl.txt.
9  *
10  * When distributing Covered Code, include this CDDL Header Notice in each file
11  * and include the License file at http://www.netbeans.org/cddl.txt.
12  * If applicable, add the following below the CDDL Header, with the fields
13  * enclosed by brackets [] replaced by your own identifying information:
14  * "Portions Copyrighted [year] [name of copyright owner]"
15  *
16  * The Original Software is NetBeans. The Initial Developer of the Original
17  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
18  * Microsystems, Inc. All Rights Reserved.
19  */

20
21 package org.netbeans.test.editor.app.tests;
22 import java.io.PrintWriter JavaDoc;
23 import org.openide.filesystems.*;
24 import org.netbeans.junit.NbTestCase;
25 import org.netbeans.junit.NbTestSuite;
26 import java.io.File JavaDoc;
27 import org.netbeans.test.editor.LineDiff;
28
29
30 /**
31  *
32  * @author ehucka
33  * @version 1.1
34  * Write out all default abbreviations. */

35
36 public class AbbreviationsPerformer extends NbTestCase {
37 public AbbreviationsPerformer(String JavaDoc name) {
38 super(name);
39 }
40 public void tearDown() throws Exception JavaDoc {
41     assertFile("Output does not match golden file.", getGoldenFile(), new File JavaDoc(getWorkDir(), this.getName() + ".ref"), new File JavaDoc(getWorkDir(), this.getName() + ".diff"), new LineDiff(false));
42 }
43
44 /**
45  * Call Action: InvokeAll
46  * Sub Test: BasicTests
47  * Author: ehucka
48  * Version: 1.1
49  * Comment: Write out all default abbreviations.
50  */

51
52 public void testInvokeAll() throws Exception JavaDoc {
53 PrintWriter JavaDoc ref = null;
54 PrintWriter JavaDoc log = null;
55 String JavaDoc[] arguments = new String JavaDoc[] {
56 "/org/netbeans/test/editor/app/tests/abbrevs.xml",
57 "BasicTests.InvokeAll"
58 };
59 try {
60 ref = new PrintWriter JavaDoc(getRef());
61 log = new PrintWriter JavaDoc(getLog());
62 new CallTestGeneric().runTest(arguments, log, ref);
63 } finally {
64 if (ref != null) ref.flush();
65 if (log != null) log.flush();
66 }
67 }
68
69 /**
70  * Call Action: IndentAbbrevs
71  * Sub Test: BasicTests
72  * Author: ehucka
73  * Version: 1.1
74  * Comment: Write out all default abbreviations.
75  */

76
77 public void testIndentAbbrevs() throws Exception JavaDoc {
78 PrintWriter JavaDoc ref = null;
79 PrintWriter JavaDoc log = null;
80 String JavaDoc[] arguments = new String JavaDoc[] {
81 "/org/netbeans/test/editor/app/tests/abbrevs.xml",
82 "BasicTests.IndentAbbrevs"
83 };
84 try {
85 ref = new PrintWriter JavaDoc(getRef());
86 log = new PrintWriter JavaDoc(getLog());
87 new CallTestGeneric().runTest(arguments, log, ref);
88 } finally {
89 if (ref != null) ref.flush();
90 if (log != null) log.flush();
91 }
92 }
93
94 /**
95  * Call Action: Cursor
96  * Sub Test: BasicTests
97  * Author: ehucka
98  * Version: 1.1
99  * Comment: Write out all default abbreviations.
100  */

101
102 public void testCursor() throws Exception JavaDoc {
103 PrintWriter JavaDoc ref = null;
104 PrintWriter JavaDoc log = null;
105 String JavaDoc[] arguments = new String JavaDoc[] {
106 "/org/netbeans/test/editor/app/tests/abbrevs.xml",
107 "BasicTests.Cursor"
108 };
109 try {
110 ref = new PrintWriter JavaDoc(getRef());
111 log = new PrintWriter JavaDoc(getLog());
112 new CallTestGeneric().runTest(arguments, log, ref);
113 } finally {
114 if (ref != null) ref.flush();
115 if (log != null) log.flush();
116 }
117 }
118 }
119
Popular Tags