sorry for the delay
if you to print stack trace
import org.junit.Assert;
import org.junit.Test;
import org.junit.rules.ErrorCollector;
public class Assertion {
ErrorCollector error1 = new ErrorCollector();
@Test
public void assertion() {
int expected_result = 100;
int acctual_result = 101;
try {
Assert.assertEquals(expected_result, acctual_result);
} catch (Exception t) {
t.printStackTrace();
System.out.println("Operatiom is sucessfull");
error1.addError(t);
}
}
}