15d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhaopackage junit.framework;
25d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao
35d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao/**
45d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao * Thrown when an assertion failed.
55d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao */
61ef4ce87e54a595a67263e550916b97a1b468b99Alex Lightpublic class AssertionFailedError extends AssertionError {
71ef4ce87e54a595a67263e550916b97a1b468b99Alex Light
81ef4ce87e54a595a67263e550916b97a1b468b99Alex Light	private static final long serialVersionUID= 1L;
91ef4ce87e54a595a67263e550916b97a1b468b99Alex Light
101ef4ce87e54a595a67263e550916b97a1b468b99Alex Light	public AssertionFailedError() {
111ef4ce87e54a595a67263e550916b97a1b468b99Alex Light	}
121ef4ce87e54a595a67263e550916b97a1b468b99Alex Light
131ef4ce87e54a595a67263e550916b97a1b468b99Alex Light	public AssertionFailedError(String message) {
141ef4ce87e54a595a67263e550916b97a1b468b99Alex Light		super(defaultString(message));
151ef4ce87e54a595a67263e550916b97a1b468b99Alex Light	}
161ef4ce87e54a595a67263e550916b97a1b468b99Alex Light
171ef4ce87e54a595a67263e550916b97a1b468b99Alex Light	private static String defaultString(String message) {
181ef4ce87e54a595a67263e550916b97a1b468b99Alex Light		return message == null ? "" : message;
191ef4ce87e54a595a67263e550916b97a1b468b99Alex Light	}
201ef4ce87e54a595a67263e550916b97a1b468b99Alex Light}