// Path: jmock/src/main/java/org/jmock/api/ExpectationCollector.java
// public interface ExpectationCollector {
//     void add(Expectation expectation);
// }


import org.hamcrest.CoreMatchers;
import org.hamcrest.Matcher;
import org.hamcrest.core.*;
import org.jmock.api.Action;
import org.jmock.api.ExpectationCollector;
import org.jmock.internal.*;
import org.jmock.lib.action.*;
import org.jmock.syntax.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
        public int intIs(Matcher<?> matcher) {
            addParameterMatcher(matcher);
            return 0;
        }

        public long longIs(Matcher<?> matcher) {
            addParameterMatcher(matcher);
            return 0;
        }

        public short shortIs(Matcher<?> matcher) {
            addParameterMatcher(matcher);
            return 0;
        }

        public <T> T is(Matcher<?> matcher) {
            addParameterMatcher(matcher);
            return null;
        }
    };
    
    
    private void initialiseExpectationCapture(Cardinality cardinality) {
        checkLastExpectationWasFullySpecified();
        
        currentBuilder = new InvocationExpectationBuilder();
        currentBuilder.setCardinality(cardinality);
        builders.add(currentBuilder);
    }
    
// Path: jmock/src/main/java/org/jmock/api/ExpectationCollector.java
// public interface ExpectationCollector {
//     void add(Expectation expectation);
// }


// Path: jmock/src/main/java/org/jmock/AbstractExpectations.java
import org.hamcrest.CoreMatchers;
import org.hamcrest.Matcher;
import org.hamcrest.core.*;
import org.jmock.api.Action;
import org.jmock.api.ExpectationCollector;
import org.jmock.internal.*;
import org.jmock.lib.action.*;
import org.jmock.syntax.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

        public int intIs(Matcher<?> matcher) {
            addParameterMatcher(matcher);
            return 0;
        }

        public long longIs(Matcher<?> matcher) {
            addParameterMatcher(matcher);
            return 0;
        }

        public short shortIs(Matcher<?> matcher) {
            addParameterMatcher(matcher);
            return 0;
        }

        public <T> T is(Matcher<?> matcher) {
            addParameterMatcher(matcher);
            return null;
        }
    };
    
    
    private void initialiseExpectationCapture(Cardinality cardinality) {
        checkLastExpectationWasFullySpecified();
        
        currentBuilder = new InvocationExpectationBuilder();
        currentBuilder.setCardinality(cardinality);
        builders.add(currentBuilder);
    }
    
    public void buildExpectations(Action defaultAction, ExpectationCollector collector) {