I am running a simple test case where I test if there is no id in the db and i get an expected exception back.
But it does not work. So my question is how to trace the values of a test in junit? Any good solutions?
I appreaciate your answer!!!
UPDATE:
test case:
@Test(expected = SQLException.class)
public void testDeleteID(){
ArrayList<Produkt> queryResult=new ArrayList<Produkt>();
shandler.deleteProdukt(666);
queryResult=shandler.findAll();
}
IDE: eclipse
Are you using IDE such as Eclipse? Add a break point, and run as Debug.