package org.jmock.syntax;

import org.hamcrest.Matcher;


public interface CardinalityClause {
    ReceiverClause exactly(int count);
    ReceiverClause atLeast(int count);
    ReceiverClause between(int minCount, int maxCount);
    ReceiverClause atMost(int count);
    
    <T> T one(T mockObject);
    
    <T> T allowing(T mockObject);
    MethodClause allowing(Matcher<?> mockObjectMatcher);
    
    <T> T ignoring(T mockObject);
    MethodClause ignoring(Matcher<?> mockObjectMatcher);
    
    <T> T never(T mockObject);
}

@@ -278,16 +278,18 @@
 T%3E T one
+Of
 (T mockO
@@ -293,32 +293,62 @@
 ckObject);%0A    %0A
+    %3CT%3E T one(T mockObject);%0A%0A
     %3CT%3E T allowi

Fix for JMOCK-203: oneOf missing from CardinalityClause interface.