Package samples.expectnew
Class MultiConstructor
java.lang.Object
samples.expectnew.MultiConstructor
Mocking object construction with
withAnyArguments()
does not treat all
the object's constructors equally. This test fixture provides an object which
has multiple constructors so that tests can cover both code-paths of constructor
matching.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMultiConstructor
(String first) MultiConstructor
(String first, Runnable something, boolean b) MultiConstructor
(String first, String second) -
Method Summary
-
Field Details
-
first
-
-
Constructor Details
-
MultiConstructor
-
MultiConstructor
-
MultiConstructor
-
-
Method Details
-
getFirst
-