/** * @return a new rule that assumes an existing running broker */ public static BrokerRunning isRunning() { return new BrokerRunning(true); }
/** * @return a new rule that assumes there is no existing broker */ public static BrokerRunning isNotRunning() { return new BrokerRunning(false); }
/** * @return a new rule that assumes an existing broker with the management plugin */ public static BrokerRunning isBrokerAndManagementRunning() { return new BrokerRunning(true, false, true); }
/** * @param queues the queues. * @return a new rule that assumes an existing broker with the management plugin with * the provided queues declared (and emptied if needed).. */ public static BrokerRunning isBrokerAndManagementRunningWithEmptyQueues(String...queues) { return new BrokerRunning(true, false, true, queues); }
/** * Ensure the broker is running and has a empty queue(s) with the specified name(s) in the * default exchange. * * @param names the queues to declare for the test. * @return a new rule that assumes an existing running broker */ public static BrokerRunning isRunningWithEmptyQueues(String... names) { return new BrokerRunning(true, true, names); }
/** * @return a new rule that assumes an existing broker with the management plugin */ public static BrokerRunning isBrokerAndManagementRunning() { return new BrokerRunning(true, false, true); }
/** * Ensure the broker is running and has a empty queue(s) with the specified name(s) in the * default exchange. * * @param names the queues to declare for the test. * @return a new rule that assumes an existing running broker */ public static BrokerRunning isRunningWithEmptyQueues(String... names) { return new BrokerRunning(true, true, names); }
/** * @return a new rule that assumes an existing running broker */ public static BrokerRunning isRunning() { return new BrokerRunning(true); }
/** * @return a new rule that assumes there is no existing broker */ public static BrokerRunning isNotRunning() { return new BrokerRunning(false); }
/** * @param queues the queues. * @return a new rule that assumes an existing broker with the management plugin with * the provided queues declared (and emptied if needed).. */ public static BrokerRunning isBrokerAndManagementRunningWithEmptyQueues(String...queues) { return new BrokerRunning(true, false, true, queues); }