* @throws CorruptDataException
* @throws MemoryAccessException
*/
public void setUp() throws CorruptDataException, MemoryAccessException {
JavaObject thisTestInstanceInDump=getScenerioReference();
assertNotNull(thisTestInstanceInDump);
Iterator i=thisTestInstanceInDump.getJavaClass().getDeclaredFields().iterator();
assertNotNull("declared fields iterator is null",i);
while(i.hasNext()) {
Object o=i.next();
if(o instanceof JavaField) {
JavaField field=(JavaField) o;
String name=field.getName();
if(name.equals("configThreadInstances")) {
JavaObject obj=(JavaObject) field.get(thisTestInstanceInDump);
// found field
int arraySize=obj.getArraySize();
assertEquals(3,arraySize);
threadDumpInstances=new JavaObject[arraySize];
obj.arraycopy(0,threadDumpInstances,0,arraySize);
return;
}
}
}