AfterPropertiesSet() 공개 메소드

@see IInitializationPostOperations#AfterPropertiesSet
public AfterPropertiesSet ( ) : void
리턴 void
예제 #1
0
 public void AfterPropertiesSetTest()
 {
     FtpGetTasklet tasklet = new FtpGetTasklet
     {
         FileNamePattern = "*.txt",
         Host = "ftp.mysite.com",
         Username = "******",
         Password = "******",
         RemoteDirectory = "/"
     };
     try
     {
         tasklet.AfterPropertiesSet();
     }
     catch (Exception e)
     {
         Assert.IsTrue(e is ArgumentException);
     }
     tasklet.LocalDirectory = "C:/temp";
     tasklet.AfterPropertiesSet();
     Assert.IsNotNull(tasklet.LocalDirectory);
 }
예제 #2
0
        public void DoExecuteTest()
        {
            FtpGetTasklet tasklet = new FtpGetTasklet
            {
                LocalDirectory = "C:/temp/DL",
                FileNamePattern = "*.txt",
                Host = "ftp.XXX.xxx",
                Username = "******",
                Password = "******",
                RemoteDirectory = "/"
            };

            tasklet.AfterPropertiesSet();
            Assert.IsTrue(tasklet.DoExecute());

        }