Utilites for asserting about build artifacts. For usage examples, see Jumi's BuildTest.java
Requires Java 6 or greater.
This project is available in Maven Central using the following dependency:
<dependency>
<groupId>fi.luontola.buildtest</groupId>
<artifactId>buildtest</artifactId>
<version>1.0.2</version>
</dependency>
- Fixed
ProjectArtifacts.getProjectJar
andgetProjectPom
to not match artifacts with the same prefix as the requested artifactId
- Fixed
CompositeMatcher
not reporting all error messages together
Initial release, extracted from Jumi's build tests. Contains the following utilities:
AsmMatchers
- Some Hamcrest matchers for classesAsmUtils
- Checking whether classes are annotated with specific annotationsClassesInJarFile
- Iterable over all classes in a JAR fileCompositeMatcher
- Asserting over multiple items and reporting all failuresDeprecations
- Reminder to remove deprecated classes/methods/fields after some timeJarUtils
- Inspecting and asserting about the contents of a JAR fileMavenUtils
- Reading the runtime dependencies from a Maven POM filePartiallyParameterized
- JUnit runner for classes with parameterized and non-parameterized testsProjectArtifacts
- Finding project artifacts from a directory where presumably the build copied themResourcesUtil
- Reading properties files from classpathVersionNumbering
- Checking the format of version numbersXmlUtils
- Parsing XML files