1 18 package net.sf.drftpd.mirroring; 19 20 import java.util.HashSet ; 21 22 import net.sf.drftpd.master.RemoteSlave; 23 24 import junit.framework.TestCase; 25 26 30 public class JobTest extends TestCase { 31 32 36 public JobTest(String arg0) { 37 super(arg0); 38 } 39 40 public static void main(String [] args) { 41 junit.textui.TestRunner.run(JobTest.class); 42 } 43 44 public void testRemoveDestinationSlave() { 45 HashSet slaveSet = new HashSet (); 46 RemoteSlave rslave = new RemoteSlave("name",null); 47 slaveSet.add(rslave); 48 Job job = new Job(null,slaveSet,null,null,0,1); 49 job.sentToSlave(rslave); 50 assertTrue(job.isDone()); 51 } 52 53 } 54 | Popular Tags |