samedi 19 septembre 2020

cannot resolve method 'expected' [closed]

@Test(expected = IllegalArgumentException.class)
public void formatExceptionNullTemplate() {
  hms(3, 5, 7).format(null);
}

I'm running this test that takes an hms object (hours, minutes, seconds) and tests to make sure that null objects don't get passed through. However, the 'expected' method after @Test is not being recognized and I'm not sure why. If anyone could help with this it would be much appreciated.

Aucun commentaire:

Enregistrer un commentaire