Beispiel #1
0
 @Test
 public void getOrNull_A$_null() throws Exception {
   String value = null;
   Some<String> target = new Some<String>(value);
   String actual = target.getOrNull();
   assertThat(actual, is(nullValue()));
 }
Beispiel #2
0
 @Test
 public void getOrNull_A$() throws Exception {
   String value = "vvv";
   Some<String> target = new Some<String>(value);
   String actual = target.getOrNull();
   assertThat(actual, is(equalTo("vvv")));
 }