APISonar


org.mockito.internal.util.MockitoLogger.log

> org > mockito > internal > util > MockitoLogger > log
org APIs mockito APIs internal APIs util APIs MockitoLogger APIs log APIs

Example 1
private final MockitoLogger logger;

    public void foundUnstubbed(InvocationMatcher unstubbed) {
        if (warnAboutUnstubbed) {
            logger.log(join(
                    "This method was not stubbed ",
                    unstubbed,
                    unstubbed.getInvocation().getLocation(),
                    ""));
        }
    }
Example 2
private final MockitoLogger logger;

    public void foundStubCalledWithDifferentArgs(Invocation unused, InvocationMatcher unstubbed) {
        logger.log(join(
                " *** Stubbing warnings from Mockito: *** ",
                "",
                "stubbed with those args here   " + unused.getLocation(),
                "BUT called with different args " + unstubbed.getInvocation().getLocation(),
                ""));
    }