Access { public boolean isControlled() { return CONTROLLED.equalsIgnoreCase(value); } Access(String accessType); boolean isOpen(); boolean isControlled(); boolean isOther(); final static String OPEN; final static String CONTROLLED; }
@Test public void test_missing_access_type() { val sut = new Access(""); assertThat(sut.isControlled()).isTrue(); }
@Test public void test_null_access_type() { val sut = new Access(null); assertThat(sut.isControlled()).isTrue(); }
@Test public void test_literal_null_access_type() { val sut = new Access("null"); assertThat(sut.isControlled()).isTrue(); }