1 7 8 package org.netbeans.modules.languages.fold; 9 10 import junit.framework.TestCase; 11 import org.netbeans.editor.TokenCategory; 12 import org.netbeans.editor.TokenContext; 13 import org.netbeans.editor.TokenContextPath; 14 import org.netbeans.editor.TokenID; 15 16 17 21 public class EditorTokenInputTest extends TestCase { 22 23 public EditorTokenInputTest (String testName) { 24 super (testName); 25 } 26 27 48 private static TokenCategory TOKEN_CATEGORY = new TokenCategory () { 49 public String getName () { 50 return "category"; 51 } 52 public int getNumericID () { 53 return 111; 54 } 55 }; 56 57 private static TokenContextPath TOKEN_CONTEXT_PATH = 58 new MTokenContext ("tokenContext").getContextPath (); 59 60 private static class MTokenContext extends TokenContext { 61 62 MTokenContext ( 63 String name 64 ) { 65 super (name); 66 } 67 68 void addToken (TokenID token) { 69 addTokenID (token); 70 } 71 }; 72 73 } 117 | Popular Tags |