Package com.hazelcast.test.archunit
Class MatchersUsageCondition
- java.lang.Object
-
- com.tngtech.archunit.lang.ArchCondition<com.tngtech.archunit.core.domain.JavaClass>
-
- com.hazelcast.test.archunit.MatchersUsageCondition
-
public class MatchersUsageCondition extends com.tngtech.archunit.lang.ArchCondition<com.tngtech.archunit.core.domain.JavaClass>
Hamcrest is great, but AssertJ is even better. Also, Hamcrest matchers tend to cause the usage oforg.junit.Assert#assertThat
(didn't add link to not depend on deprecated method), which is deprecated - and AssertJ is better for fluent assertions.
-
-
Constructor Summary
Constructors Constructor Description MatchersUsageCondition()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
check(com.tngtech.archunit.core.domain.JavaClass item, com.tngtech.archunit.lang.ConditionEvents events)
static com.tngtech.archunit.lang.ArchCondition<com.tngtech.archunit.core.domain.JavaClass>
notUseHamcrestMatchers()
-
-
-
Method Detail
-
check
public void check(com.tngtech.archunit.core.domain.JavaClass item, com.tngtech.archunit.lang.ConditionEvents events)
- Specified by:
check
in classcom.tngtech.archunit.lang.ArchCondition<com.tngtech.archunit.core.domain.JavaClass>
-
notUseHamcrestMatchers
public static com.tngtech.archunit.lang.ArchCondition<com.tngtech.archunit.core.domain.JavaClass> notUseHamcrestMatchers()
-
-