Class NoHamcrestInOurTestSourcesTest

java.lang.Object
com.hazelcast.test.archunit.ArchUnitTestSupport
com.hazelcast.test.archunit.NoHamcrestInOurTestSourcesTest

public class NoHamcrestInOurTestSourcesTest extends ArchUnitTestSupport
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.
  • Constructor Details

    • NoHamcrestInOurTestSourcesTest

      public NoHamcrestInOurTestSourcesTest()
  • Method Details

    • noClassUsesHamcrest

      public void noClassUsesHamcrest()