ArchUnit icon indicating copy to clipboard operation
ArchUnit copied to clipboard

Support class versions

Open jvandort opened this issue 1 year ago • 4 comments

Add the class version to JavaClass so rules can verify the class version

Fixes https://github.com/TNG/ArchUnit/issues/423

jvandort avatar Feb 04 '25 23:02 jvandort

I followed the guidelines in the original issue, but was unsure about testing.

How would you advise testing this?

jvandort avatar Feb 05 '25 00:02 jvandort

One option could be to commit compiled classes in src/test/resources to the repository.

hankem avatar Feb 08 '25 10:02 hankem

Do you have an example test method/class I should follow the style/pattern of?

jvandort avatar Feb 10 '25 21:02 jvandort

A test would be really great for this, including the LTS versions starting from Java 8: 8, 11, 17, 21, 25 checking in compiled classes sounds as the most stable solution, but I'm not sure of how to add these classes to the scanned packages/classes

StefanGraeber avatar Apr 24 '26 14:04 StefanGraeber