Package org.springframework.integration.core

Examples of org.springframework.integration.core.PollableChannel.send()


 
  @Test
  public void deletesNestedDirectoriesAndFiles() {
   
    PollableChannel deletionChannel = deletionService.libraryDeletionChannel;
    deletionChannel.send(msg(dir1, set(dir2), set(file1a)));
    deletionChannel.send(FINISHED_MESSAGE);
   
    deletionService.receive();
    deletionService.updateLibrary();
   
View Full Code Here


  @Test
  public void deletesNestedDirectoriesAndFiles() {
   
    PollableChannel deletionChannel = deletionService.libraryDeletionChannel;
    deletionChannel.send(msg(dir1, set(dir2), set(file1a)));
    deletionChannel.send(FINISHED_MESSAGE);
   
    deletionService.receive();
    deletionService.updateLibrary();
   
    assertEquals(set(file1b), presenceDao.getFiles(dir1));
View Full Code Here

    presenceService.setLibraryPresenceDao(presenceDao);

    file2b.setSize(file2.getSize() + 1);
   
    PollableChannel presenceChannel = presenceService.libraryPresenceChannel;
    presenceChannel.send(LibraryUtil.msg(dir1, set(dir2), set(file1, file2b)));
    presenceChannel.send(FINISHED_MESSAGE);
   
    presenceService.receive();
   
    Message<?> additionMessage, deletionMessage;
View Full Code Here

    file2b.setSize(file2.getSize() + 1);
   
    PollableChannel presenceChannel = presenceService.libraryPresenceChannel;
    presenceChannel.send(LibraryUtil.msg(dir1, set(dir2), set(file1, file2b)));
    presenceChannel.send(FINISHED_MESSAGE);
   
    presenceService.receive();
   
    Message<?> additionMessage, deletionMessage;
    assertNotNull(additionMessage = presenceService.libraryMetadataChannel.receive());
View Full Code Here

  @Test
  public void addsNestedDirectoriesAndFiles() {
    additionService.clearImport();
   
    PollableChannel additionChannel = additionService.libraryAdditionChannel;
    additionChannel.send(msg(dir2, new HashSet<String>(), set(file2a)));
    additionChannel.send(msg(dir1, set(dir2), set(file1a, file1b)));
    additionChannel.send(msg(null, set(dir1), new HashSet<File>()));
    additionChannel.send(FINISHED_MESSAGE);
   
    additionService.receive();
View Full Code Here

  public void addsNestedDirectoriesAndFiles() {
    additionService.clearImport();
   
    PollableChannel additionChannel = additionService.libraryAdditionChannel;
    additionChannel.send(msg(dir2, new HashSet<String>(), set(file2a)));
    additionChannel.send(msg(dir1, set(dir2), set(file1a, file1b)));
    additionChannel.send(msg(null, set(dir1), new HashSet<File>()));
    additionChannel.send(FINISHED_MESSAGE);
   
    additionService.receive();
    additionService.updateLibrary();
View Full Code Here

    additionService.clearImport();
   
    PollableChannel additionChannel = additionService.libraryAdditionChannel;
    additionChannel.send(msg(dir2, new HashSet<String>(), set(file2a)));
    additionChannel.send(msg(dir1, set(dir2), set(file1a, file1b)));
    additionChannel.send(msg(null, set(dir1), new HashSet<File>()));
    additionChannel.send(FINISHED_MESSAGE);
   
    additionService.receive();
    additionService.updateLibrary();
   
View Full Code Here

   
    PollableChannel additionChannel = additionService.libraryAdditionChannel;
    additionChannel.send(msg(dir2, new HashSet<String>(), set(file2a)));
    additionChannel.send(msg(dir1, set(dir2), set(file1a, file1b)));
    additionChannel.send(msg(null, set(dir1), new HashSet<File>()));
    additionChannel.send(FINISHED_MESSAGE);
   
    additionService.receive();
    additionService.updateLibrary();
   
    assertEquals(set(file1a, file1b), presenceDao.getFiles(dir1));
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.