Created
October 12, 2020 20:56
-
-
Save BenjaminKlatt/bb0d9b5b642265bf9f68cac401da4e6f to your computer and use it in GitHub Desktop.
ArchUnit Predefined Rules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static com.tngtech.archunit.library.GeneralCodingRules.NO_CLASSES_SHOULD_THROW_GENERIC_EXCEPTIONS; | |
import static com.tngtech.archunit.library.GeneralCodingRules.NO_CLASSES_SHOULD_USE_JODATIME; | |
... | |
@ArchTest | |
static ArchRule no_generic_exceptions = NO_CLASSES_SHOULD_THROW_GENERIC_EXCEPTIONS; | |
@ArchTest | |
static ArchRule do_not_use_jodatime = NO_CLASSES_SHOULD_USE_JODATIME; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment