} catch (CruiseControlException expected) {
}
}
public void testSelectBuilder_MultipleBuildersWithDaySet() throws CruiseControlException {
Builder thursdayBuilder = new MockBuilder();
thursdayBuilder.setDay("thursday");
Schedule scheduledByDay = new Schedule();
scheduledByDay.addBuilder(thursdayBuilder);
assertEquals(thursdayBuilder, scheduledByDay.selectBuilder(1, THURSDAY_1001, THURSDAY_1101));
assertEquals(thursdayBuilder, scheduledByDay.selectBuilder(1, THURSDAY_1001, FRIDAY_0000));
Builder fridayBuilder = new MockBuilder();
fridayBuilder.setDay("friday");
scheduledByDay.addBuilder(fridayBuilder);
assertEquals(thursdayBuilder, scheduledByDay.selectBuilder(1, THURSDAY_1001, THURSDAY_1101));
assertEquals(fridayBuilder, scheduledByDay.selectBuilder(1, THURSDAY_1001, FRIDAY_0000));
}