1 37 package net.sourceforge.cruisecontrol.publishers; 38 39 import junit.framework.TestCase; 40 import net.sourceforge.cruisecontrol.CruiseControlException; 41 42 public class FTPPublisherTest extends TestCase { 43 44 public void testValidate1() { 45 FTPPublisher ftpp = new FTPPublisher(); 46 try { 47 ftpp.validate(); 48 fail("Must throw exception if target host not set."); 49 } catch (CruiseControlException e) { 50 } 52 } 53 54 55 public void testValidate2() throws Exception { 56 FTPPublisher ftpp = new FTPPublisher(); 57 ftpp.setTargetHost("x"); 58 ftpp.setDestDir("x"); 59 ftpp.setSrcDir("x"); 60 ftpp.validate(); 61 } 62 } 63 | Popular Tags |