com.sun.jdi.ClassNotLoadedException: Type not loaded [message #465155] |
Fri, 23 March 2007 14:37 |
Sebastien Pennec Messages: 31 Registered: July 2009 |
Member |
|
|
Hello,
While unit-testing my plugin, I try to send content to it, then verify that the
content is displayed.
To retrieve the content of my plugin, I do the following:
TableViewer viewer = (TableViewer) view.getViewer();
TableItem[] items = viewer.getTable().getItems();
assertEquals(a_certain_number_of_expected_elements, items.length);
TableItem lastItem = items[items.length-1];
assertEquals("some string", lastItem.getText());
Basically, I check first the number of items in the table, then check the last item's
content.
The table is a virtual table.
Each time I try to get the TableItem array, I can see the following Exception in the
debugger:
org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has
not been loaded occurred while retrieving component type of array.
While running, the array is always empty, although when the test run I can see that
some elements are displayed in the view.
Can anybody help me understand what is going on?
Thanks a lot! :)
Sébastien
|
|
|
Powered by
FUDForum. Page generated in 0.03391 seconds