public class MultiplicityFactory extends Object
Modifier and Type | Class and Description |
---|---|
class |
MultiplicityFactory.LimitableMultiplicity
Extends the multiplicity with a to method, limiting the current multiplicitys max
matches.
|
Constructor and Description |
---|
MultiplicityFactory() |
Modifier and Type | Method and Description |
---|---|
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() |
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)
Copyright © 2005-2013 Agical AB. All Rights Reserved.