assertEquals(2, projectB.getLastBuild().getNumber());
}
public void testTriggerByUnstableBuild() throws Exception {
Project projectA = createFreeStyleProject("projectA");
projectA.getBuildersList().add(new UnstableBuilder());
Project projectB = createFreeStyleProject("projectB");
projectB.setQuietPeriod(1);
schedule(projectA, projectB, ResultCondition.SUCCESS);
assertNull(projectB.getLastBuild());