Compare commits

..

3 commits

Author SHA1 Message Date
Erik C. Thauvin a35f60d540
Merge 44bce493ac into affa9e1dac 2025-12-30 01:31:20 +00:00
Erik C. Thauvin 44bce493ac
Add JUnit reporter integration and update workflow steps 2025-12-29 17:30:53 -08:00
Erik C. Thauvin 1a1e97d0c4
Add unit tests for JavacOptions class 2025-12-29 17:30:52 -08:00

View file

@ -872,13 +872,25 @@ class TestJavacOptions {
TRY, UNCHECKED, VARARGS
);
String[] keys = {
"all", "auxiliaryclass", "cast", "classfile", "dangling-doc-comments",
"dep-ann", "deprecation", "divzero", "empty", "exports", "fallthrough",
"finally", "identity", "incubating", "lossy-conversions",
"missing-explicit-ctor", "module", "none", "opens", "options",
"output-file-clash", "overloads", "overrides", "path", "preview",
"processing", "rawtypes", "removal", "requires-automatic",
"requires-transitive-automatic", "restricted", "serial", "static",
"strictfp", "synchronization", "text-blocks", "this-escape",
"try", "unchecked", "varargs"
};
assertEquals(1, options.size());
var result = options.get(0);
assertTrue(result.startsWith("-Xlint:"));
assertTrue(result.contains("all"));
assertTrue(result.contains("deprecation"));
assertTrue(result.contains("unchecked"));
assertTrue(result.contains("dangling-doc-comments"));
for (var key : keys) {
assertTrue(result.contains(key));
}
}
@Test