KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > ruby > RubyStringLexerTest


1 /*
2  * RubyCommentLexerTest.java
3  *
4  * Created on February 26, 2007, 10:22 AM
5  *
6  * To change this template, choose Tools | Template Manager
7  * and open the template in the editor.
8  */

9
10 package org.netbeans.modules.ruby;
11
12 import org.netbeans.modules.ruby.lexer.RubyStringTokenId;
13 import org.netbeans.junit.NbTestCase;
14 import org.netbeans.lib.lexer.test.LexerTestUtilities;
15
16 /**
17  *
18  * @author Tor Norbye
19  */

20 public class RubyStringLexerTest extends NbTestCase {
21     
22     public RubyStringLexerTest(String JavaDoc testName) {
23         super(testName);
24     }
25     
26     protected void setUp() throws java.lang.Exception JavaDoc {
27         // Set-up testing environment
28
LexerTestUtilities.setTesting(true);
29     }
30
31     protected void tearDown() throws java.lang.Exception JavaDoc {
32     }
33     
34     public void test() throws Exception JavaDoc {
35         LexerTestUtilities.checkTokenDump(this, "testfiles/testStrings.rb.txt",
36                 RubyStringTokenId.languageDouble());
37     }
38 }
39
Popular Tags