|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agical.rmock.core.match.multiplicity.MultiplicityFactory
public class MultiplicityFactory
(c) Agical AB 2005
| Nested Class Summary | |
|---|---|
class |
MultiplicityFactory.LimitableMultiplicity
Extends the multiplicity with a to method, limiting the current multiplicitys max matches. |
| Constructor Summary | |
|---|---|
MultiplicityFactory()
|
|
| Method Summary | |
|---|---|
Multiplicity |
atLeast(int min)
|
Multiplicity |
atLeastOnce()
|
Multiplicity |
atMost(int times)
Creates a constraint that can match up to a specified times 0..times |
Multiplicity |
atMostOnce()
Creates a constraint that can match up to one times 0..* |
Multiplicity |
exactly(int times)
|
MultiplicityFactory.LimitableMultiplicity |
from(int min)
Use this methd to specify ranges. |
Multiplicity |
once()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiplicityFactory()
| Method Detail |
|---|
public Multiplicity once()
public Multiplicity atLeastOnce()
public Multiplicity atLeast(int min)
min - the minimum number of times the method is expected to be called.
public Multiplicity exactly(int times)
times - the exact number of times the method is expected to be called.
public Multiplicity atMost(int times)
times - the maximum number of times the method is expected to be called.
public Multiplicity atMostOnce()
public MultiplicityFactory.LimitableMultiplicity from(int min)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||