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 'cglib' does not match package name 'java-cglib' | |
input-labels Identify input labels that do not match package names | label 'asm' does not match package name 'java-asm' | |
input-labels Identify input labels that do not match package names | label 'hamcrest' does not match package name 'java-hamcrest-core' | |
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 'core' does not match package name 'java-powermock-core' | |
input-labels Identify input labels that do not match package names | label 'easymock' does not match package name 'java-easymock' | |
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 'hamcrest' does not match package name 'java-hamcrest-core' | |
input-labels Identify input labels that do not match package names | label 'cglib' does not match package name 'java-cglib' |