2015-05-05 11:20:13 -07:00
|
|
|
|
//: assertions/Assert2.java
|
2015-05-29 14:18:51 -07:00
|
|
|
|
// <20>2015 MindView LLC: see Copyright.txt
|
2015-05-05 11:20:13 -07:00
|
|
|
|
// Assert with an informative message
|
|
|
|
|
// {JVMArgs: -ea}
|
|
|
|
|
// {ThrowsException}
|
|
|
|
|
|
|
|
|
|
public class Assert2 {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
assert false: "Here's a message saying what happened";
|
|
|
|
|
}
|
|
|
|
|
} ///:~
|