Searched refs:assertThrows (Results 1 – 16 of 16) sorted by relevance
6 import org.junit.Assert.assertThrows41 val error = assertThrows(AsyncStorageError::class.java) { in throwsIfArgumentsNotValidFormat()53 val errorArgsInvalidNull = assertThrows(AsyncStorageError::class.java) { in throwsIfArgumentKeyIsNullOrNotString()60 val errorNotString = assertThrows(AsyncStorageError::class.java) { in throwsIfArgumentKeyIsNullOrNotString()71 val error = assertThrows(AsyncStorageError::class.java) { in throwsIfArgumentValueNotString()
8 import expo.modules.assertThrows38 assertThrows<InvalidArgsNumberException>("Received 2 arguments, but 1 was expected") { in call should throw if pass more arguments then expected()57 assertThrows<InvalidArgsNumberException>("Received 1 arguments, but 2 was expected") { in call should throw if pass less arguments then expected()75 assertThrows<ArgumentCastException>( in call should throw if cannot convert args()
7 import org.junit.Assert.assertThrows58 val failure = assertThrows(JSONException::class.java) { in checks if fromJson throws on invalid json()
190 val failure = Assert.assertThrows(Exception::class.java) { in checks if parseManifest fails on unsuccessful response()
6 inline fun <reified T : Throwable> assertThrows(expectedMessage: String? = null, block: () -> Any?)… in assertThrows() method
22 import org.junit.Assert.assertThrows89 assertThrows(AssetQueryException::class.java) { in GetAssets should reject on null cursor()
25 import org.junit.Assert.assertThrows113 assertThrows(AssetQueryException::class.java) { in queryAssetInfo should reject on null cursor()
7 import expo.modules.assertThrows
17 import org.junit.Assert.assertThrows95 assertThrows(AlbumException::class.java) { in GetAlbums should reject on null cursor()
21 import org.junit.Assert.assertThrows104 assertThrows(AlbumException::class.java) { in queryAlbum should reject on null cursor()
23 import org.junit.Assert.assertThrows in <lambda>()117 assertThrows(AlbumException::class.java) { in <lambda>()
26 val exception = Assert.assertThrows(JavaScriptEvaluateException::class.java) { in evaluate_should_throw_evaluate_exception_with_stack()
178 val exception = Assert.assertThrows(PromiseException::class.java) { in <lambda>()195 val exception = Assert.assertThrows(PromiseException::class.java) { in <lambda>()
89 Assert.assertThrows(Exception::class.java) { in throws if manifest is published and no updatesInterface exists()