Home
last modified time | relevance | path

Searched refs:assertThrows (Results 1 – 16 of 16) sorted by relevance

/expo/android/vendored/sdk48/@react-native-async-storage/async-storage/android/src/test/java/abi48_0_0/com/reactnativecommunity/asyncstorage/next/
H A DArgumentHelpersTest.kt6 import org.junit.Assert.assertThrows
41 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()
/expo/android/vendored/unversioned/@react-native-async-storage/async-storage/android/src/test/java/com/reactnativecommunity/asyncstorage/next/
H A DArgumentHelpersTest.kt6 import org.junit.Assert.assertThrows
41 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()
/expo/android/vendored/sdk49/@react-native-async-storage/async-storage/android/src/test/java/abi49_0_0/com/reactnativecommunity/asyncstorage/next/
H A DArgumentHelpersTest.kt6 import org.junit.Assert.assertThrows
41 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()
/expo/packages/expo-modules-core/android/src/test/java/expo/modules/kotlin/functions/
H A DAnyFunctionTest.kt8 import expo.modules.assertThrows
38 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()
/expo/packages/expo-dev-launcher/android/src/test/java/expo/modules/devlauncher/launcher/manifest/
H A DDevLauncherManifestTest.kt7 import org.junit.Assert.assertThrows
58 val failure = assertThrows(JSONException::class.java) { in checks if fromJson throws on invalid json()
H A DDevLauncherManifestParserTest.kt190 val failure = Assert.assertThrows(Exception::class.java) { in checks if parseManifest fails on unsuccessful response()
/expo/packages/expo-modules-core/android/src/test/java/expo/modules/
H A DTruthExtensions.kt6 inline fun <reified T : Throwable> assertThrows(expectedMessage: String? = null, block: () -> Any?)… in assertThrows() method
/expo/packages/expo-media-library/android/src/test/java/expo/modules/medialibrary/assets/
H A DGetAssetsTest.kt22 import org.junit.Assert.assertThrows
89 assertThrows(AssetQueryException::class.java) { in GetAssets should reject on null cursor()
H A DGetAssetInfoTests.kt25 import org.junit.Assert.assertThrows
113 assertThrows(AssetQueryException::class.java) { in queryAssetInfo should reject on null cursor()
/expo/packages/expo-modules-core/android/src/test/java/expo/modules/kotlin/
H A DModuleHolderTest.kt7 import expo.modules.assertThrows
/expo/packages/expo-media-library/android/src/test/java/expo/modules/medialibrary/albums/
H A DGetAlbumsTests.kt17 import org.junit.Assert.assertThrows
95 assertThrows(AlbumException::class.java) { in GetAlbums should reject on null cursor()
H A DGetAlbumInfoTests.kt21 import org.junit.Assert.assertThrows
104 assertThrows(AlbumException::class.java) { in queryAlbum should reject on null cursor()
H A DGetAlbumTests.kt23 import org.junit.Assert.assertThrows in <lambda>()
117 assertThrows(AlbumException::class.java) { in <lambda>()
/expo/packages/expo-modules-core/android/src/androidTest/java/expo/modules/kotlin/jni/
H A DJavaScriptRuntimeTest.kt26 val exception = Assert.assertThrows(JavaScriptEvaluateException::class.java) { in evaluate_should_throw_evaluate_exception_with_stack()
H A DJSIAsyncFunctionsTest.kt178 val exception = Assert.assertThrows(PromiseException::class.java) { in <lambda>()
195 val exception = Assert.assertThrows(PromiseException::class.java) { in <lambda>()
/expo/packages/expo-dev-launcher/android/src/testDebug/java/expo/modules/devlauncher/launcher/loaders/
H A DDevLauncherAppLoaderFactoryTest.kt89 Assert.assertThrows(Exception::class.java) { in throws if manifest is published and no updatesInterface exists()