#48 TestContractRunnerTest#testInvalid

Ditutup
dibuka 4 tahun lalu oleh ranides · 1 komentar

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 komentar 4 tahun lalu
Pemilik

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 referenced this issue from a commit 4 tahun lalu
Masuk untuk bergabung dalam percakapan ini.
Tidak ada tonggak
Tidak ada penerima
1 Peserta
Memuat...
Batal
Simpan
Belum ada konten.