BuildTest
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>
Version History
BuildTest 1.0.2 (2014-11-13)
- Fixed
ProjectArtifacts.getProjectJarandgetProjectPomto not match artifacts with the same prefix as the requested artifactId
BuildTest 1.0.1 (2014-08-11)
- Fixed
CompositeMatchernot reporting all error messages together
BuildTest 1.0.0 (2013-08-13)
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