All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.triceo.splitlog.expectations.MidDeliveryExpectation Maven / Gradle / Ivy

Go to download

These are the core parts of splitlog. This is where the implementations of the public APIs live. Classes from this package come with no API stability guarantees.

There is a newer version: 1.7.2
Show newest version
package com.github.triceo.splitlog.expectations;

import com.github.triceo.splitlog.api.Message;
import com.github.triceo.splitlog.api.MessageAction;
import com.github.triceo.splitlog.api.MessageDeliveryStatus;
import com.github.triceo.splitlog.api.MessageProducer;
import com.github.triceo.splitlog.api.MidDeliveryMessageCondition;

final class MidDeliveryExpectation> extends
AbstractExpectation, S> {

    public MidDeliveryExpectation(final MidDeliveryExpectationManager manager,
        final MidDeliveryMessageCondition condition, final MessageAction action) {
        super(manager, condition, action);
    }

    @Override
    protected boolean isAccepted(final Message msg, final MessageDeliveryStatus status, final S source) {
        return this.getBlockingCondition().accept(msg, status, source);
    }

}