Random Notes by agilob · Aug 14, 2021
ArchUnit check if abstract classes are abstract
0Sign in to vote or save
This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.
@Test public void abstractClassesAreAbstract() { final JavaClasses importedClasses = new ClassFileImporter() .importPackages('net.agilob.project'); LoggingRulesTest.ABSTRACT_CLASS_MUST_BE_ABSTRACT.check(importedClasses); } public static final ArchRule ABSTRACT_CLASS_MUST_BE_ABSTRACT = classes() .that() .haveSimpleNameContaining('Abstract').or().haveSimpleNameContaining('abstract') .should()…

Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.