I tried the code
package Base;
import org.testng.Assert;
import org.testng.annotations.Test;
public class Assertcheck
{
@Test
public void check() {
Assert.assertTrue(true, "testing the string true");
}
}
and the code succeeds but the message "testing the string true" is not displayed. i checked in console output and also in testNG results.