Skip to content

Commit d8341d9

Browse files
committed
playing with assertions in main() method
1 parent e380d88 commit d8341d9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/main/java/com/epam/izh/rd/online

src/main/java/com/epam/izh/rd/online/Main.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ public int hashCode() {
4444
{/* SECTION FOR PLAYING WITH ASSERTIONS */
4545

4646
try {
47-
Assert.isTrue(1 == 2, "What? 1 == 2? That's not true!!!");
47+
Assert.isTrue(1 == 1, "What? 1 == 2? That's not true!!!");
48+
System.out.println("\nAssertion is successful. The requirement was met. Good job, man!\n");
4849
} /*catch ( IllegalArgumentException e ) {
4950
System.out.println("What was that?!");
5051
}*/ catch ( Exception e ) {

0 commit comments

Comments
 (0)