Registry / testing / compile-testing

compile-testing

JSON →
library0.23.0javamavenunverified

Utilities for testing Java compilation and annotation processors.

<dependency> <groupId>com.google.testing.compile</groupId> <artifactId>compile-testing</artifactId> <version>0.23.0</version> </dependency>
INSTALL
IMPORT
SIG · COMPILE-TESTING
C
compile-testing
testingjavav0.23.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Compilation
com.google.testing.compile.Compilation

Compiles a simple Java source string and prints the compilation status.

import com.google.testing.compile.Compilation; import com.google.testing.compile.JavaFileObjects; public class Example { public static void main(String[] args) { Compilation compilation = Compilation.subject() .compile(JavaFileObjects.forSourceString("Hello", "class Hello {}")); System.out.println(compilation.status()); } }
Debug
Known issues
gotchaRequires JDK 8 or later; may have issues with newer JDK versions due to internal API changes.
fix
Use the latest version of compile-testing and ensure your JDK is supported.
affects: <0.19
Upgrade
Version history
0.23.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
compile-testing — mvn dependency:get compile-testing · libregistry