1 19 20 package org.netbeans.lib.terminalemulator; 21 22 import java.lang.reflect.Modifier ; 23 import junit.framework.*; 24 import org.netbeans.junit.*; 25 import org.netbeans.lib.terminalemulator.Coord; 26 import org.netbeans.lib.terminalemulator.Term; 27 28 32 public class TermTest extends NbTestCase { 33 34 public TermTest(java.lang.String testName) { 35 super(testName); 36 } 37 38 public static void main(java.lang.String [] args) { 39 junit.textui.TestRunner.run(new NbTestSuite(TermTest.class)); 40 } 41 42 45 public void testJellyCompatibility() { 46 try { 47 assertTrue("Term class is public", Modifier.isPublic(Term.class.getModifiers())); 48 assertTrue("Coord class is public", Modifier.isPublic(Coord.class.getModifiers())); 49 Term term = new Term(); 50 term.getRowText(0); 51 term.textWithin(Coord.make(0,0),Coord.make(0,0)); 52 term.getCursorRow(); 53 term.flush(); 54 Class.forName("org.netbeans.lib.terminalemulator.Screen"); 55 } catch (Exception e) { 56 throw new AssertionFailedErrorException("JellyTools compatibility conflict, please contact QA or any JellyTools developer.", e); 57 } 58 } 59 60 61 } 62 | Popular Tags |