1 23 24 30 31 package com.sun.enterprise.config.backup; 32 33 import com.sun.enterprise.config.backup.util.FileUtils; 34 import java.io.*; 35 import java.util.*; 36 import java.util.zip.*; 37 import junit.framework.*; 38 39 43 public class StatusTest extends TestCase 44 { 45 46 public StatusTest(java.lang.String testName) 47 { 48 super(testName); 49 } 50 51 public static Test suite() 52 { 53 TestSuite suite = new TestSuite(StatusTest.class); 54 return suite; 55 } 56 57 58 public void testWrite() 59 { 60 System.out.println("testWrite"); 61 } 62 63 64 public void testRead() 65 { 66 System.out.println("*************** testRead - terse\n"); 67 68 File f = new File("C:/tmp/domains/domain1/backups/no-status.zip"); 69 Status s = new Status(); 70 System.out.println(s.read(f, true)); 71 System.out.println("\n*************** testRead - verbose\n"); 72 System.out.println(s.read(f, false)); 73 } 74 75 76 public void testDelete() 77 { 78 } 79 80 public static void main(java.lang.String [] args) 81 { 82 junit.textui.TestRunner.run(suite()); 83 } 84 85 89 90 } 91 | Popular Tags |