How to set test result to fail manually

I want to exit from test during execution of it, in if statement how can I do this?

how about:

            assertTrue("'X' button NOT loaded", mainPage.tapButtonX());
            assertTrue("'Description' input NOT loaded or NOT correct", testStringsEquals(paymentPage.getDescription(), paymentDescription));