demo.org.powermock.examples.Slf4jUser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powermock-examples-slf4j-mockito Show documentation
Show all versions of powermock-examples-slf4j-mockito Show documentation
Example of using Slf4jMockPolicy with Mockito.
package demo.org.powermock.examples;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Slf4jUser {
private static final Logger log = LoggerFactory.getLogger(Slf4jUser.class);
public final String getMessage() {
log.debug("getMessage!");
return "log4j user";
}
}