#48 TestContractRunnerTest#testInvalid

Zavřený
otevřeno před 4 roky uživatelem ranides · 1 komentářů
ranides okomentoval před 4 roky

net.ranides.assira.junit.TestContractRunnerTest#testInvalid

I have no idea, what asserion error was expected there? but it is not thrown now. maybe rollback and look

net.ranides.assira.junit.TestContractRunnerTest#testInvalid I have no idea, what asserion error was expected there? but it is not thrown now. maybe rollback and look
ranides okomentoval před 4 roky
Vlastník

explained: exception never was thrown. our NewAssert#assertThrows catches their own AssertionError from #fail.

assertThrows(AssertionError.class, ...) will always succeed.

New version of JUnit 4.13 introduced their own "assertThrows" and it works correclty.

explained: exception never was thrown. our NewAssert#assertThrows catches their own AssertionError from #fail. assertThrows(AssertionError.class, ...) will always succeed. New version of JUnit 4.13 introduced their own "assertThrows" and it works correclty.
ranides odkázal na tento úkol z revize před 4 roky
Přihlaste se pro zapojení do konverzace.
Bez milníku
Bez zpracovatele
1 účastníků
Načítání...
Zrušit
Uložit
Není zde žádný obsah.