assertEquals(gecos, String.valueOf(passwd.NOT_FOUND));
}
public void testLookupHomeDirPass() {
// passwd is a fake class for testing located in testcases dir
Passwd passwd = null;
try {
passwd = new Passwd(PASSWD_STREAM);
} catch (Exception e) {
fail();
}
// look me up out out of that file and make sure uid is still 28272
String homedir = passwd.lookupHomeDir(USER_ID_PASS);
assertEquals(homedir, HOME_DIR_PASS);
}