Mock library extension framework
PowerMock is a framework that extends other mock libraries such as EasyMock with more powerful capabilities. PowerMock uses a custom classloader and bytecode manipulation to enable mocking of static methods, constructors, final classes and methods, private methods, removal of static initializers and more. By using a custom classloader no changes need to be done to the IDE or continuous integration servers which simplifies adoption.
Linter | Message | Location |
---|---|---|
source-unstable-tarball Check for autogenerated tarballs | the source URI should not be an autogenerated tarball | |
patch-file-names Validate file names and availability of patches | file names of patches should start with the package name | |
input-labels Identify input labels that do not match package names | label 'junit' does not match package name 'java-junit' | |
input-labels Identify input labels that do not match package names | label 'assertj' does not match package name 'java-assertj' | |
input-labels Identify input labels that do not match package names | label 'mockito' does not match package name 'java-mockito' | |
input-labels Identify input labels that do not match package names | label 'reflect' does not match package name 'java-powermock-reflect' | |
input-labels Identify input labels that do not match package names | label 'javassist' does not match package name 'java-jboss-javassist' |