Stay organized with collections
Save and categorize content based on your preferences.
FailedToCreateTests
open class FailedToCreateTests
A special junit.framework.TestCase used to indicate a failure during the build() step.
Summary
Public constructors
FailedToCreateTests
FailedToCreateTests(exception: Exception!)
Public methods
testSuiteConstructionFailed
open fun testSuiteConstructionFailed(): Unit
Deprecated: Deprecated in Java.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# TestSuiteBuilder.FailedToCreateTests\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nFailedToCreateTests\n===================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/test/suitebuilder/TestSuiteBuilder.FailedToCreateTests \"View this page in Java\") \n\n```\nopen class FailedToCreateTests\n```\n\n|---|---------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.test.suitebuilder.TestSuiteBuilder.FailedToCreateTests](#) |\n\n*** ** * ** ***\n\n| **This class was deprecated in API level 26.**\n|\n| New tests should be written using the [Android Testing Support Library](https://developer.android.com/tools/testing-support-library/index.html).\n\nA special junit.framework.TestCase used to indicate a failure during the build() step.\n\nSummary\n-------\n\n| Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [FailedToCreateTests](#FailedToCreateTests(java.lang.Exception))`(`exception:` `[Exception](../../../java/lang/Exception.html#)!`)` \u003cbr /\u003e |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------|--------------------------------------------------------------------------|\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [testSuiteConstructionFailed](#testSuiteConstructionFailed())`()` \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### FailedToCreateTests\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nFailedToCreateTests(exception: Exception!)\n```\n\nPublic methods\n--------------\n\n### testSuiteConstructionFailed\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun testSuiteConstructionFailed(): Unit\n```\n\n**Deprecated:** *Deprecated in Java.*"]]