Package org.eclipse.egit.github.core

Examples of org.eclipse.egit.github.core.RepositoryTag


                tagNames.add(tag.getName());
            }
        }
       
        while (!newTags.empty()) {
            RepositoryTag newTag = newTags.pop();
            Exchange e = getEndpoint().createExchange();
            e.getIn().setBody(newTag);
            getProcessor().process(e);
        }
        return newTags.size();
View Full Code Here


    }


    @Test
    public void tagConsumerTest() throws Exception {
        RepositoryTag tag1 = repositoryService.addTag("TAG1");
        RepositoryTag tag2 = repositoryService.addTag("TAG2");
        RepositoryTag tag3 = repositoryService.addTag("TAG3");
        mockResultEndpoint.expectedBodiesReceivedInAnyOrder(tag1, tag2, tag3);
        Thread.sleep(1 * 1000);

        mockResultEndpoint.assertIsSatisfied();
    }
View Full Code Here

    public class RepositoryTagProcessor implements Processor {
        @Override
        public void process(Exchange exchange) throws Exception {
            Message in = exchange.getIn();
            RepositoryTag tag = (RepositoryTag) in.getBody();
            log.debug("Got TAG  [" + tag.getName() + "]");
        }
View Full Code Here

    protected static final Logger LOG = LoggerFactory.getLogger(MockRepositoryService.class);

    private List<RepositoryTag> tags = new ArrayList<RepositoryTag>();

    public RepositoryTag addTag(String tagName) {
        RepositoryTag tag = new RepositoryTag();
        tag.setName(tagName);
        tags.add(tag);

        return tag;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.github.core.RepositoryTag

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.