1 33 34 package edu.rice.cs.drjava.model.definitions.reducedmodel; 35 36 import edu.rice.cs.drjava.DrJavaTestCase; 37 38 44 public abstract class BraceReductionTestCase extends DrJavaTestCase { 45 protected volatile ReducedModelControl model0; 46 protected volatile ReducedModelControl model1; 47 protected volatile ReducedModelControl model2; 48 49 50 protected void setUp() throws Exception { 51 super.setUp(); 52 model0 = new ReducedModelControl(); 53 model1 = new ReducedModelControl(); 54 model2 = new ReducedModelControl(); 55 } 56 57 62 protected void insertGap(BraceReduction model, int size) { 63 for (int i = 0; i < size; i++) { 64 model.insertChar(' '); 65 } 66 } 67 68 73 ReducedModelState stateOfCurrentToken(BraceReduction br) { 74 return br.currentToken().getState(); 75 } 76 } | Popular Tags |