This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | test case cannot find symbol | ||
---|---|---|---|
Product: | java | Reporter: | raviparekh <raviparekh> |
Component: | JUnit | Assignee: | Yulia Novozhilova <ynov> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
URL: | http://localhost:8080 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
raviparekh
2011-05-12 10:26:13 UTC
RoomManager.JAVA public String getNameByID(int id){ return HibernateUtil.currentSession().createCriteria(Room.class) .setProjection(Projections.property("title")) .add(Restrictions.eq("id", id)).list().get(0).toString(); } when i run this program after creating new project it works fine but create project using existing source gives me same error. I created java project with existing sources on NetBeans 7.0.1. I used your code, the only difference is that getNameByID(int id) returns empty string by default. The test case run successfully without any error. Closing the issue as worksforme. Please feel free to reopen in case if you still experience the problem. Please attach the whole files, may be there is some error in the java code that causes the issue. |