Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ public class ThirdPartyRulesTest {
@ArchTest
public static ArchRule check_object_dependency = noClasses().should().dependOnClassesThat()
.haveFullyQualifiedName("com.google.common.base.Objects")
.because("Use Java standards instead (java.util.Objects).");
.because("the Java standards should be used instead (java.util.Objects).");

@ArchTest
public static ArchRule check_converter_dependency = noClasses().should().dependOnClassesThat()
.haveFullyQualifiedName("javax.persistence.Convert")
.because("Use the javax.persistence.Converter annotation on a custom converter"
.because("the javax.persistence.Converter annotation should be used on a custom converter"
+ " which implements the javax.persistence.AttributeConverter instead of the 'javax.persistance.Convert' annotation");

@ArchTest
public static ArchRule check_mysema_dependency = noClasses().should().dependOnClassesThat()
.resideInAPackage("com.mysema.query..")
.because("Use official QueryDSL (com.querydsl.* e.g. from com.querydsl:querydsl-jpa).");
.because("the official QueryDSL should be used (com.querydsl.* e.g. from com.querydsl:querydsl-jpa).");

private static boolean isApiScopedClassUsingTransactional(JavaClass source, String targetPackageFullName) {

Expand Down Expand Up @@ -227,4 +227,4 @@ public void check(JavaClass source, ConditionEvents events) {

@ArchTest
public static final ArchRule jpaIsUsedAsEncouraged = noClasses().should(misUseHibernate).allowEmptyShould(true);
}
}