Overridden from TestCase parent. This method will kick off each
individual test
/*
String [] cn = InputModeFactory.getJavaInputModeClassNames();
for (int i=0;i<cn.length;i++) {
System.out.print("'"+cn[i]+"' ");
}
System.out.println(";");
int [] ci = InputModeFactory.getNativeInputModeIds();
for (int i=0;i<ci.length;i++) {
System.out.print("'"+ci[i]+"' ");
}
System.out.println(";");
*/
int [] ci = InputModeFactory.getInputModeIds();
if (getVerbose()) {
for (int i=0;i<ci.length;i++) {
System.out.print("'"+ci[i]+"' ");
}
System.out.println(";");
}
NativeInputMode nim = new NativeInputMode();
nim.initialize(1);
info("map:");
boolean[][] ismap = nim.getIsConstraintsMap();
if (getVerbose()) {
for (int j=0; j<ismap.length; j++) {
for (int i=0; i<ismap[j].length; i++) {
System.out.print(" "+(ismap[j][i]?"t":"f"));
}
System.out.println(" ");
}
System.out.println(";");
}
assertEquals("id ",1,nim.id);
assertTrue("supportsConstraints ",true==nim.supportsConstraints(0));
assertNotNull("getName() "+nim.getName(),nim.getName());
assertNotNull("getCommandName() "+nim.getCommandName(),nim.getCommandName());
nim.beginInput(null,"",0);
assertEquals("processKey ",0,nim.processKey(1,true));
assertEquals("getPendingChar ",0,nim.getPendingChar());
assertEquals("getNextMatch ","",nim.getNextMatch());
assertFalse("hasMoreMatches ",nim.hasMoreMatches());
String [] ml = nim.getMatchList();
assertEquals("getMatchList().length ",0,nim.getMatchList().length);
if(getVerbose()) {
System.out.print("getMatchList() ");
for (int i=0;i<nim.getMatchList().length;i++) {
System.out.print("'"+ml[i]+"' ");
}
System.out.println(";");
}
try {
nim.endInput();
assertTrue("endInput successful ",true);
} catch (Throwable e) {
fail("unexpected throwable "+e);
e.printStackTrace();
}
InputMode[] ims = InputModeFactory.createInputModes();
if (getVerbose()) {
for (int i=0;i<ims.length;i++) {
System.out.print(" "+ims[i]+" ");
}
System.out.println(";");
}