Added in API level 1
Deprecated in API level 24

MockApplication


open class MockApplication : Application
kotlin.Any
   ↳ android.content.Context
   ↳ android.content.ContextWrapper
   ↳ android.app.Application
   ↳ android.test.mock.MockApplication

A mock android.app.Application class. All methods are non-functional and throw java.lang.UnsupportedOperationException. Override it as necessary to provide the operations that you need.

Summary

Inherited constants
Public constructors

Public methods
open Unit

open Unit

open Unit

Inherited functions

Public constructors

MockApplication

Added in API level 1
MockApplication()

Public methods

onConfigurationChanged

Added in API level 1
open fun onConfigurationChanged(newConfig: Configuration): Unit

Deprecated: Deprecated in Java.

Parameters
newConfig Configuration: This value cannot be null.

onCreate

Added in API level 1
open fun onCreate(): Unit

Deprecated: Deprecated in Java.

onTerminate

Added in API level 1
open fun onTerminate(): Unit

Deprecated: Deprecated in Java.