Package hudson.model.Queue

Examples of hudson.model.Queue.BuildableItem


        } catch (TimeoutException e) {
            List<BuildableItem> buildables = hudson.getQueue().getBuildableItems();
            Assert.assertNotNull(buildables);
            Assert.assertEquals(1, buildables.size());

            BuildableItem item = buildables.get(0);
            Assert.assertEquals(project, item.task);
            Assert.assertNotNull(item.getCauseOfBlockage());
            Assert.assertEquals(Messages.Queue_WaitingForNextAvailableExecutor(), item.getCauseOfBlockage().getShortDescription());
        }
    }
View Full Code Here


        assertTrue(mw.executors.isEmpty());
        assertEquals(1,mw.works.size());
    }

    private BuildableItem wrap(Queue.Task t) {
        return new BuildableItem(new WaitingItem(new GregorianCalendar(),t,new ArrayList<Action>()));
    }
View Full Code Here

TOP

Related Classes of hudson.model.Queue.BuildableItem

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.