I am having many java beans in my project. I need to generate a JUnit Test class for them. The test methods generated using eclipse IDE 3.2 & junit 4.4 for the beans are like...
public void testGetName() {
// fail("Not yet implemented");
}
@Test
public void testSetName() {
// fail("Not yet implemented");
}
@Test
public void testGetEmployeeid() {
// fail("Not yet implemented");
}
@Test
public void testSetEmployeeid() {
// fail("Not yet implemented");
}
some of my beans r having more then 100 fields...
is there a way by which I can get a single test method for both the getters & setters like testEmployeeid()
, testName()
so that in these methods I can test both my setters & getters rather then using 2 diff. test methods for them...
What configurations do I need to make for the same in eclipse?