1 19 20 25 26 package org.netbeans.test.java.integrity.UnderPressure; 27 28 import org.openide.filesystems.*; 29 import org.openide.loaders.*; 30 import org.openide.cookies.SaveCookie; 31 import org.netbeans.test.java.*; 32 33 35 36 54 55 public class UnderPressure extends org.netbeans.test.java.LogTestCase { 56 57 private static final String packageName = "org.netbeans.test.java.testsources"; 58 private static final String postPackageName = packageName + ".post"; 59 private static final String name="JavaTestSource"; 60 private static final String javaFileExtension="java"; 61 62 63 public UnderPressure(java.lang.String testName) { 64 super(testName); 65 } 66 67 public static void main(java.lang.String [] args) { 68 junit.textui.TestRunner.run(UnderPressure.class); 69 } 70 71 72 public void testRun() { 73 74 Common.setPrintWriter(ref); 75 try { 76 java.util.Vector objects; 77 for( int i=0; i<100; i++ ){ 78 } 83 FileObject fo=Repository.getDefault().find(postPackageName,"Department", "java"); 84 DataObject dob=DataObject.find(fo); 85 dob.delete(); 86 fo=Repository.getDefault().find(postPackageName,"Employee", "java"); 87 dob=DataObject.find(fo); 88 dob.delete(); 89 ref( "program terminated successfully" ); 90 } 91 catch (Exception e){ 92 e.printStackTrace(log); 93 assertTrue(e.getMessage(), false); 94 } 95 96 } 97 98 public void writeObjects(java.util.Vector objects) throws Exception { 99 104 } 105 106 public void deleteObjects(java.util.Vector objects) throws Exception { 107 } 110 111 131 132 174 } 175 176 | Popular Tags |