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 of 
org.junit.Assert#assertThat
 (didn't add link to not depend on deprecated method), which is deprecated - and AssertJ is better for fluent assertions.- 
Nested Class SummaryNested classes/interfaces inherited from class com.tngtech.archunit.lang.ArchConditioncom.tngtech.archunit.lang.ArchCondition.ConditionByPredicate<T extends com.tngtech.archunit.base.HasDescription & com.tngtech.archunit.core.domain.properties.HasSourceCodeLocation>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcheck(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>Methods inherited from class com.tngtech.archunit.lang.ArchConditionand, as, finish, forSubtype, from, getDescription, init, or, toString
- 
Constructor Details- 
MatchersUsageConditionpublic MatchersUsageCondition()
 
- 
- 
Method Details- 
checkpublic void check(com.tngtech.archunit.core.domain.JavaClass item, com.tngtech.archunit.lang.ConditionEvents events) - Specified by:
- checkin class- com.tngtech.archunit.lang.ArchCondition<com.tngtech.archunit.core.domain.JavaClass>
 
- 
notUseHamcrestMatcherspublic static com.tngtech.archunit.lang.ArchCondition<com.tngtech.archunit.core.domain.JavaClass> notUseHamcrestMatchers()
 
-