Examples of SmbInboundFileSynchronizer


Examples of org.springframework.integration.smb.inbound.SmbInboundFileSynchronizer

    assertNotNull(TestUtils.getPropertyValue(adapter, "poller"));
    assertEquals(applicationContext.getBean("smbChannel"), TestUtils.getPropertyValue(adapter, "outputChannel"));
    SmbInboundFileSynchronizingMessageSource inbound =
      (SmbInboundFileSynchronizingMessageSource) TestUtils.getPropertyValue(adapter, "source");

    SmbInboundFileSynchronizer fisync =
      (SmbInboundFileSynchronizer) TestUtils.getPropertyValue(inbound, "synchronizer");
    assertEquals(".working.tmp", TestUtils.getPropertyValue(fisync, "temporaryFileSuffix", String.class));
    String remoteFileSeparator = (String) TestUtils.getPropertyValue(fisync, "remoteFileSeparator");
    assertNotNull(remoteFileSeparator);
    assertEquals("", remoteFileSeparator);
View Full Code Here

Examples of org.springframework.integration.smb.inbound.SmbInboundFileSynchronizer

  @Test(timeout = 10000)
  public void cachingSessionFactoryByDefault() throws Exception{
    SourcePollingChannelAdapter adapter = applicationContext.getBean("simpleAdapter", SourcePollingChannelAdapter.class);
    Object sessionFactory = TestUtils.getPropertyValue(adapter, "source.synchronizer.sessionFactory");
    assertEquals(CachingSessionFactory.class, sessionFactory.getClass());
    SmbInboundFileSynchronizer fisync =
      TestUtils.getPropertyValue(adapter, "source.synchronizer", SmbInboundFileSynchronizer.class);
    String remoteFileSeparator = (String) TestUtils.getPropertyValue(fisync, "remoteFileSeparator");
    assertNotNull(remoteFileSeparator);
    assertEquals("/", remoteFileSeparator);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.