Jmockit How to match 'any' parameter type for Class clazz
up vote
0
down vote
favorite
Using jmockit, i am creating new expectation
new Expectations(){{
ConfigurationService.get(anyString,****);
}};
of static method
public static <T> T get(String key, Class<T> clazz) {
How to match 'any' parameter type for Class clazz ?
java unit-testing jmockit expectations
add a comment |
up vote
0
down vote
favorite
Using jmockit, i am creating new expectation
new Expectations(){{
ConfigurationService.get(anyString,****);
}};
of static method
public static <T> T get(String key, Class<T> clazz) {
How to match 'any' parameter type for Class clazz ?
java unit-testing jmockit expectations
1
Did you try theany
matcher?
– Rogério
2 days ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Using jmockit, i am creating new expectation
new Expectations(){{
ConfigurationService.get(anyString,****);
}};
of static method
public static <T> T get(String key, Class<T> clazz) {
How to match 'any' parameter type for Class clazz ?
java unit-testing jmockit expectations
Using jmockit, i am creating new expectation
new Expectations(){{
ConfigurationService.get(anyString,****);
}};
of static method
public static <T> T get(String key, Class<T> clazz) {
How to match 'any' parameter type for Class clazz ?
java unit-testing jmockit expectations
java unit-testing jmockit expectations
edited 2 days ago
asked 2 days ago
Melad Ezzat
7551523
7551523
1
Did you try theany
matcher?
– Rogério
2 days ago
add a comment |
1
Did you try theany
matcher?
– Rogério
2 days ago
1
1
Did you try the
any
matcher?– Rogério
2 days ago
Did you try the
any
matcher?– Rogério
2 days ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53410351%2fjmockit-how-to-match-any-parameter-type-for-classt-clazz%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Did you try the
any
matcher?– Rogério
2 days ago