#48 TestContractRunnerTest#testInvalid

Suljettu
4 vuotta sitten avasi ranides · 1 kommenttia
ranides kommentoitu 4 vuotta sitten

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 kommentoitu 4 vuotta sitten
Omistaja

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 viittasi tähän ongelmaan commitissa 4 vuotta sitten
Kirjaudu sisään osallistuaksesi tähän keskusteluun.
Ei merkkipaalua
Ei osoitettua
1 osallistujaa
Ladataan...
Peruuta
Tallenna
Sisältöä ei vielä ole.