Search in sources :

Example 1 with Lombok

use of lombok.Lombok in project pivotal-cla by pivotalsoftware.

the class ClaOAuthConfigTests method checkMemberAccess.

@Test
public void checkMemberAccess() {
    // this test is only necessary because Lombok
    // ensure we fail if Lombok is removed
    @SuppressWarnings("unused") Lombok lombok = null;
    assertThat(ClaOAuthConfig.class.getDeclaredFields()).extracting(f -> Modifier.isPrivate(f.getModifiers())).doesNotContain(false);
}
Also used : Assertions.assertThat(org.assertj.core.api.Assertions.assertThat) Modifier(java.lang.reflect.Modifier) Test(org.junit.Test) Lombok(lombok.Lombok) Before(org.junit.Before) Lombok(lombok.Lombok) Test(org.junit.Test)

Aggregations

Modifier (java.lang.reflect.Modifier)1 Lombok (lombok.Lombok)1 Assertions.assertThat (org.assertj.core.api.Assertions.assertThat)1 Before (org.junit.Before)1 Test (org.junit.Test)1