Package org.springframework.integration.samples.testing.splitter

Examples of org.springframework.integration.samples.testing.splitter.CommaDelimitedSplitter


  @Autowired
  QueueChannel testChannel;

  @Test
  public void unitTestClass3() {
    List<String> splits = new CommaDelimitedSplitter().split("   a    , b,    c ");
    String out = new CommaDelimitedAggregator().aggregate(splits);
    assertEquals("a,b,c", out);
  }
View Full Code Here


    assertEquals("a,b,c", out);
  }
 
  @Test
  public void unitTestClass2() {
    List<String> splits = new CommaDelimitedSplitter().split("   a    ,,    c ");
    String out = new CommaDelimitedAggregator().aggregate(splits);
    assertEquals("a,c", out);
  }
View Full Code Here

    assertEquals("a,c", out);
  }

  @Test
  public void unitTestClass0() {
    List<String> splits = new CommaDelimitedSplitter().split(",,, ,,    ,,  ,,");
    String out = new CommaDelimitedAggregator().aggregate(splits);
    assertNull(out);
  }
View Full Code Here

TOP

Related Classes of org.springframework.integration.samples.testing.splitter.CommaDelimitedSplitter

Copyright © 2018 www.massapicom. 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.