setUpAnnotation = null; tearDownAnnotation = null; validClass = false; validMethod = false; sawSetUp = false; sawTearDown = false; JavaClass[] superClasses = classContext.getJavaClass().getSuperClasses(); for (int i = 0; i < superClasses.length; i++) { JavaClass sc = superClasses[i]; if (sc.getClassName().equals("junit.framework.TestCase")) { validClass = true; classContext.getJavaClass().accept(this); break; } }
if (!Repository.instanceOf(jClass, "junit.framework.TestCase")) return;  JavaClass superClass = jClass.getSuperClass(); directChildOfTestCase = superClass.getClassName().equals( "junit.framework.TestCase"); jClass.accept(this);
	public void visitClassContext(ClassContext classContext) {		try {			setUpAnnotation = null;			tearDownAnnotation = null;			validClass = false;			validMethod = false;			sawSetUp = false;			sawTearDown = false;			JavaClass[] superClasses = classContext.getJavaClass().getSuperClasses();			for (int i = 0; i < superClasses.length; i++) {				JavaClass sc = superClasses[i];				if (sc.getClassName().equals("junit.framework.TestCase")) {					validClass = true;					classContext.getJavaClass().accept(this);					break;				}			}		} catch (ClassNotFoundException cnfe) {			bugReporter.reportMissingClass(cnfe);		}				}