FileDocCategorySizeDatePackage
BackupManagerTest.javaAPI DocGlassfish v2 API3068Fri May 04 22:23:16 BST 2007com.sun.enterprise.config.backup

BackupManagerTest

public class BackupManagerTest extends TestCase
author
Byron Nevins

Fields Summary
Constructors Summary
public BackupManagerTest(String testName)

		super(testName);
	
Methods Summary
public static voidmain(java.lang.String[] args)

		junit.textui.TestRunner.run(suite());
	
public static junit.framework.Testsuite()

		TestSuite suite = new TestSuite(BackupManagerTest.class);
		return suite;
	
public voidtestBackup()
Test of backup method, of class com.sun.enterprise.config.backup.BackupManager.

		try
		{
			System.out.println("testBackup");
			BackupRequest req = new BackupRequest("C:/tmp/domains", "domain1");
			BackupManager mgr = new BackupManager(req);
			mgr.backup();
		}
		catch(BackupException be)
		{
			fail("Got an Exception: " + be);
		}