Hi,
I have written this piece of code:
public class testAssert {
2 public static void main(String[] args) {
3 int x = 5;
4 int y = 7;
5 assert x != y;
6 }
7 }
I am not sure how to make use of this because there is no output whether I make check for "x == y" or "x != y". I was expecting something like that "failed/successful" or any other kind of output just as in JUnit. I am not sure what is wrong here. Isn't it supposed to throw assertionError or something like that?
Thakns.