/** * test for or w/ null. */ @Test public void or() { ByteOption option = new ByteOption(); assertThat(option.or((byte) 30), is((byte) 30)); assertThat(option.isNull(), is(true)); }
/** * test for or. */ @Test public void orNotNull() { ByteOption option = new ByteOption(); option.modify((byte) 100); assertThat(option.or((byte) 30), is((byte) 100)); }