Hello all.
Starts to use JUnit in NetBeans 5.5. But can`t understand how it works.
Have such simple code:
/**
* Test of isCloseTime method, of class stInterface.TestSettings.
*/
public void testIsCloseTime() {
System.out.println("isCloseTime");
boolean expResult = true;
boolean result = true;
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
fail(expResult + " is not equal " + result);
}
The push Alt+F6 for test starting and get:
true is not equal true
junit.framework.assertionFailedError
Please, expalain me, what I have done wrong?