1 23 24 30 31 package com.sun.enterprise.config.backup; 32 33 import com.sun.enterprise.config.backup.util.*; 34 import java.io.*; 35 import java.util.*; 36 import junit.framework.*; 37 38 42 public class BackupManagerTest extends TestCase 43 { 44 45 public BackupManagerTest(java.lang.String testName) 46 { 47 super(testName); 48 } 49 50 public static Test suite() 51 { 52 TestSuite suite = new TestSuite(BackupManagerTest.class); 53 return suite; 54 } 55 56 57 public void testBackup() 58 { 59 try 60 { 61 System.out.println("testBackup"); 62 BackupRequest req = new BackupRequest("C:/tmp/domains", "domain1"); 63 BackupManager mgr = new BackupManager(req); 64 mgr.backup(); 65 } 66 catch(BackupException be) 67 { 68 fail("Got an Exception: " + be); 69 } 70 } 71 72 public static void main(java.lang.String [] args) 73 { 74 junit.textui.TestRunner.run(suite()); 75 } 76 77 81 82 } 83 | Popular Tags |