1 23 24 25 31 32 package com.sun.enterprise.config.backup; 33 34 import junit.framework.*; 35 36 40 public class ListManagerTest extends TestCase 41 { 42 43 public ListManagerTest(java.lang.String testName) 44 { 45 super(testName); 46 } 47 48 public static Test suite() 49 { 50 TestSuite suite = new TestSuite(ListManagerTest.class); 51 return suite; 52 } 53 54 55 public void testListManager() 56 { 57 System.out.println("testListManager"); 58 59 try 60 { 61 BackupRequest req = new BackupRequest("C:/tmp/domains", "domain1"); 62 ListManager listMgr = new ListManager(req); 63 System.out.println(listMgr.list()); 64 } 65 catch(BackupException be) 66 { 67 fail("Got an unexpected BackupException: " + be); 68 } 69 catch(Exception e) 70 { 71 fail("Got an unexpected BackupException: " + e); 72 } 73 } 74 75 public static void main(java.lang.String [] args) 76 { 77 junit.textui.TestRunner.run(suite()); 78 } 79 80 84 85 } 86 | Popular Tags |