JUNIT This exception may occur if matchers are combined with raw values: - ruben-com-br/wiki GitHub Wiki
Erro
This exception may occur if matchers are combined with raw values: //incorrect: someMethod(any(), "raw String"); When using matchers, all arguments have to be provided by matchers. For example: //correct: someMethod(any(), eq("String by matcher")); For more info see javadoc for Matchers class.
Diagnostico
Tentativas
Tentativa:
| Tentativa | Sucesso | Fracasso | Repasse |
|---|---|---|---|
| 1 | 1 | 0 | 0 |
Troque
when(internetBankingService.prepare(anyString(),loginInternetBankingRequest)).thenReturn(loginBuilder()
Por
when(classeService.prepare(anyString(), any(classeRequest.class)))