Currently all our junit tests are following a convention using -
@Test
public void testXYZ() {
System.out.println("--------------Testing XYZ-----------");
// actual test logic goes here
System.out.println("--------------Successfully tested XYZ-----------");
}
@Test
public void text123() {
System.out.println("--------------Testing 123-----------");
// actual test logic goes here
System.out.println("--------------Successfully tested 123-----------");
}
How can I get rid of these redundant print statements but still have them on display?