1 33 34 package edu.rice.cs.drjava.model.junit; 35 36 import edu.rice.cs.drjava.model.compiler.CompilerError; 37 38 39 import java.io.File ; 40 import java.io.Serializable ; 41 42 47 public class JUnitError extends CompilerError implements Comparable , Serializable { 48 private String _test; 49 private String _className; 50 private String _stackTrace; 51 52 61 public JUnitError(File file, int lineNumber, int startColumn, String message, 62 boolean isWarning, String test, String className, String stackTrace) { 63 super(file, lineNumber, startColumn, message, isWarning); 64 _test = test; 65 _className = className; 66 _stackTrace = stackTrace; 67 } 68 69 76 public JUnitError(String message, boolean isWarning, String test) { 77 this(null, -1, -1, message, isWarning, test, "", "No associated stack trace"); 78 } 79 80 84 public String testName() { 85 return _test; 86 } 87 88 92 public String className() { 93 return _className; 94 } 95 96 101 public String stackTrace() { 102 return _stackTrace; 103 } 104 105 } | Popular Tags |