Example #1
0
 public void test_of_lookup_notFound() {
   assertThrowsIllegalArg(() -> PayReceive.of("Rubbish"));
 }
Example #2
0
 public void test_of_lookup_null() {
   assertThrowsIllegalArg(() -> PayReceive.of(null));
 }
Example #3
0
 @Test(dataProvider = "name")
 public void test_of_lookup(PayReceive convention, String name) {
   assertEquals(PayReceive.of(name), convention);
 }