Package com.sonymobile.tools.gerrit.gerritevents.dto.events

Examples of com.sonymobile.tools.gerrit.gerritevents.dto.events.ChangeRestored


     */
    @Test
    public void testMarshalWithOthersChangeRestored() throws Exception {
        TriggeredItemEntity entity = new TriggeredItemEntity(100, "projectX");

        ChangeRestored event = Setup.createChangeRestored();

        TriggerContext context = new TriggerContext(event);
        context.setThisBuild(entity);
        LinkedList<TriggeredItemEntity> otherBuilds = new LinkedList<TriggeredItemEntity>();
        otherBuilds.add(new TriggeredItemEntity(1, "projectY"));
View Full Code Here


    /**
     * Test that it should not block item caused by ChangeRestored.
     */
    @Test
    public void shouldNotBlockItemCausedByChangeRestored() {
        assertNull("Build should not be blocked", dispatcher.canRun(createItemWithOneSlave(new ChangeRestored())));
    }
View Full Code Here

    /**
     * Gives you a ChangeRestored mock.
     * @return ChangeRestored mock.
     */
    public static ChangeRestored createChangeRestored() {
        ChangeRestored event = new ChangeRestored();
        Change change = new Change();
        change.setBranch("branch");
        change.setId("Iddaaddaa123456789");
        change.setNumber("1000");
        Account account = new Account("Name", "email@domain.com");
        change.setOwner(account);
        change.setProject("project");
        change.setSubject("subject");
        change.setUrl("http://gerrit/1000");
        event.setChange(change);
        PatchSet patch = new PatchSet();
        patch.setNumber("1");
        patch.setRevision("9999");
        event.setPatchset(patch);
        Account restorer = new Account("Name1", "email@domain1.com");
        event.setRestorer(restorer);
        return event;
    }
View Full Code Here

TOP

Related Classes of com.sonymobile.tools.gerrit.gerritevents.dto.events.ChangeRestored

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.