I'm trying to implement an easy junit test for a method. My intention is to test if the method parameter is not null
. So that the test fails if the parameter is null
.
the method is:
/*
* @return the db entry object
*/
getEntry( String user, String grp, int status);
My first try to implement the test is
public void testGetEntry() {
String userId = null;
getEntry( userId, "grp1", 3);
asserNotNull(userId);
}
I think thats not the correct way. thx for any help :)