1 21 package com.db4o.test.types; 22 23 import com.db4o.*; 24 import com.db4o.test.*; 25 26 public class MasterMonster extends RTest 27 { 28 public Object [] ooo; 29 30 public void set(int ver){ 31 Object [] classes = allClassesButThis(); 32 ooo = new Object [classes.length]; 33 for(int i = 0;i < classes.length; i++){ 34 try{ 35 RTestable test = (RTestable)classes[i]; 36 if(Platform4.canSetAccessible() || !test.jdk2() ){ 37 ooo[i] = test.newInstance(); 38 test.set(ooo[i], ver); 39 } 40 }catch (Exception e){ 41 throw new RuntimeException ("MasterMonster instantiation failed."); 42 } 43 } 44 } 45 46 Object [] allClassesButThis(){ 47 Object [] all = Regression.allClasses(); 48 Object [] classes = new Object [all.length - 1]; 49 System.arraycopy(all,0,classes,0,all.length - 1); 50 return classes; 51 } 52 } 53 | Popular Tags |