Methods Summary |
---|
public static void | main(java.lang.String[] args)
junit.textui.TestRunner.run(suite());
|
public static junit.framework.Test | suite()
TestSuite suite = new TestSuite(BackupRequestTest.class);
return suite;
|
public void | testBadBackupFile()
System.out.println("testBadBackupFile");
File f = new File("c:/temp/goo");
try
{
f.mkdirs();
BackupRequest req = new BackupRequest("c:/temp", "goo", "c:/temp/q.zip");
BackupManager mgr = new BackupManager(req);
}
catch(BackupException be)
{
System.out.println(be);
return;
}
finally
{
FileUtils.whack(f);
}
fail("Should have got an Exception!");
|
public void | testBadCtor()Test of verifyInfo method, of class com.sun.enterprise.config.backup.BackupRequest.
System.out.println("testVerifyInfo");
try
{
BackupRequest req = new BackupRequest(null, null);
BackupManager mgr = new BackupManager(req);
}
catch(NullPointerException e)
{
System.out.println(e);
return;
}
catch(BackupException be)
{
System.out.println(be);
return;
}
fail("Should have got an Exception!");
|
public void | testBadDomainName()
System.out.println("testBadDomainName");
try
{
BackupRequest req = new BackupRequest("c:/temp", "");
BackupManager mgr = new BackupManager(req);
}
catch(BackupException be)
{
System.out.println(be);
return;
}
fail("Should have got an Exception!");
|
public void | testBadDomainsDir()
System.out.println("testBadDomainsDir");
try
{
BackupRequest req = new BackupRequest("w:/foo", "goo");
BackupManager mgr = new BackupManager(req);
}
catch(BackupException be)
{
System.out.println(be);
return;
}
fail("Should have got an Exception!");
|
public void | testGoodDomainName()
System.out.println("testGoodDomainName");
File f = new File("c:/temp/goo");
f.mkdirs();
try
{
BackupRequest req = new BackupRequest("c:/temp", "goo");
BackupManager mgr = new BackupManager(req);
}
catch(BackupException be)
{
System.out.println(be);
fail("Should not have got an Exception!");
}
finally
{
FileUtils.whack(f);
}
|
public void | testGoodDomainNameButNotExisting()
System.out.println("testGoodDomainName");
try
{
File f = new File("c:/temp/goo");
FileUtils.whack(f);
BackupRequest req = new BackupRequest("c:/temp", "goo");
BackupManager mgr = new BackupManager(req);
}
catch(BackupException be)
{
System.out.println(be);
return;
}
fail("Should have got an Exception!");
|
public void | testGoodDomainsDir()
System.out.println("testGoodDomainsDir");
File f = new File("c:/temp/goo");
f.mkdirs();
try
{
BackupRequest req = new BackupRequest("c:/temp", "goo");
BackupManager mgr = new BackupManager(req);
}
catch(BackupException be)
{
System.out.println(be);
fail("Should not have got an Exception!");
}
finally
{
FileUtils.whack(f);
}
|