W
www
Hi,
In my junit test
....//run the program first
//checking the results now
super.assertEquals(...); //first check
super.assertEquals(...); //second check
But if the first check is false, the program halts and gives the message
that the check is false. I hope to know if the second check is true or
not, even though the first one fails. Right now, I am doing:
public void setUp() {
... //run the program
}
public void testFirst() {
super.assertEquals(...); //first check
}
public void testSecond() {
super.assertEquals(...); //second check
}
Above satisfiers my needs. The problem is that the program is
un-necessarily run twice. So it takes a little more time. I think my
problem is very basic and common scenario in using junit test. Is there
a better way to do it?
Thank you for your help.
In my junit test
....//run the program first
//checking the results now
super.assertEquals(...); //first check
super.assertEquals(...); //second check
But if the first check is false, the program halts and gives the message
that the check is false. I hope to know if the second check is true or
not, even though the first one fails. Right now, I am doing:
public void setUp() {
... //run the program
}
public void testFirst() {
super.assertEquals(...); //first check
}
public void testSecond() {
super.assertEquals(...); //second check
}
Above satisfiers my needs. The problem is that the program is
un-necessarily run twice. So it takes a little more time. I think my
problem is very basic and common scenario in using junit test. Is there
a better way to do it?
Thank you for your help.