junit test error - ClassCastException
- by Josepth Vodary
When trying to run a junit test I get the following error -
java.lang.ClassCastException: business.Factory cannot be cast to services.itemservice.IItemsService
at business.ItemManager.get(ItemManager.java:56)
at business.ItemMgrTest.testGet(ItemMgrTest.java:49)
The specific test that is causing the problem is
@Test
public void testGet() {
…