MCPcopy Create free account

hub / github.com/android/testing-samples / types & classes

Types & classes74 in github.com/android/testing-samples

ClassAccessibilityChecksTest
Basic tests showcasing espresso AccessibilityChecks.
ui/espresso/AccessibilitySample/app/src/androidTest/java/com/example/android/testing/espresso/AccessibilitySample/AccessibilityChecksTest.java:34
ClassAndroidTestSuite
Test suite that runs all tests, unit + instrumentation tests.
runner/AndroidJunitRunnerSample/app/src/androidTest/java/com/example/android/testing/androidjunitrunnersample/suite/AndroidTestSuite.java:25
ClassCalculator
A simple calculator with a basic set of operations.
runner/AndroidTestOrchestratorSample/app/src/main/java/com/example/android/testing/androidtestorchestratorsample/Calculator.java:24
ClassCalculator
A simple calculator with a basic set of operations.
runner/AndroidTestOrchestratorWithTestCoverageSample/app/src/main/java/com/example/android/testing/androidtestorchestratorsample/Calculator.java:24
ClassCalculator
A simple calculator with a basic set of operations.
runner/AndroidJunitRunnerSample/app/src/main/java/com/example/android/testing/androidjunitrunnersample/Calculator.java:24
ClassCalculatorActivity
{@link android.app.Activity} which contains a simple calculator. Numbers can be entered in the two {@link EditText} fields and result can be obtained
runner/AndroidTestOrchestratorSample/app/src/main/java/com/example/android/testing/androidtestorchestratorsample/CalculatorActivity.java:33
ClassCalculatorActivity
{@link android.app.Activity} which contains a simple calculator. Numbers can be entered in the two {@link EditText} fields and result can be obtained
runner/AndroidTestOrchestratorWithTestCoverageSample/app/src/main/java/com/example/android/testing/androidtestorchestratorsample/CalculatorActivity.java:33
ClassCalculatorActivity
{@link android.app.Activity} which contains a simple calculator. Numbers can be entered in the two {@link EditText} fields and result can be obtained
runner/AndroidJunitRunnerSample/app/src/main/java/com/example/android/testing/androidjunitrunnersample/CalculatorActivity.java:33
ClassCalculatorAddParameterizedTest
JUnit4 tests for the calculator's add logic. <p> This test uses a Junit4s Parameterized tests features which uses annotations to pass parameters into
runner/AndroidTestOrchestratorSample/app/src/androidTest/java/com/example/android/testing/androidtestorchestratorsample/CalculatorAddParameterizedTest.java:42
ClassCalculatorAddParameterizedTest
JUnit4 tests for the calculator's add logic. <p> This test uses a Junit4s Parameterized tests features which uses annotations to pass parameters into
runner/AndroidTestOrchestratorWithTestCoverageSample/app/src/androidTest/java/com/example/android/testing/androidtestorchestratorsample/CalculatorAddParameterizedTest.java:42
ClassCalculatorAddParameterizedTest
JUnit4 tests for the calculator's add logic. <p> This test uses Junit4s Parameterized tests features which uses annotations to pass parameters into a
runner/AndroidJunitRunnerSample/app/src/androidTest/java/com/example/android/testing/androidjunitrunnersample/CalculatorAddParameterizedTest.java:40
ClassCalculatorInstrumentationTest
JUnit4 Ui Tests for {@link CalculatorActivity} using the {@link AndroidJUnitRunner} with the Android Test Orchestrator. This class uses the JUnit4 syn
runner/AndroidTestOrchestratorSample/app/src/androidTest/java/com/example/android/testing/androidtestorchestratorsample/CalculatorInstrumentationTest.java:51
ClassCalculatorInstrumentationTest
JUnit4 Ui Tests for {@link CalculatorActivity} using the {@link AndroidJUnitRunner} with the Android Test Orchestrator. This class uses the JUnit4 syn
runner/AndroidTestOrchestratorWithTestCoverageSample/app/src/androidTest/java/com/example/android/testing/androidtestorchestratorsample/CalculatorInstrumentationTest.java:50
ClassCalculatorInstrumentationTest
JUnit4 Ui Tests for {@link CalculatorActivity} using the {@link AndroidJUnitRunner}. This class uses the JUnit4 syntax for tests. <p> With the new And
runner/AndroidJunitRunnerSample/app/src/androidTest/java/com/example/android/testing/androidjunitrunnersample/CalculatorInstrumentationTest.java:49
ClassCalculatorTest
JUnit4 unit tests for the calculator logic.
runner/AndroidJunitRunnerSample/app/src/androidTest/java/com/example/android/testing/androidjunitrunnersample/CalculatorTest.java:33
ClassChangeTextBehaviorLocalTest
ui/espresso/BasicSample/app/src/test/java/com/example/android/testing/espresso/BasicSample/ChangeTextBehaviorLocalTest.java:23
ClassChangeTextBehaviorTest
Basic sample for unbundled UiAutomator.
ui/uiautomator/BasicSample/app/src/androidTest/java/com/example/android/testing/uiautomator/BasicSample/ChangeTextBehaviorTest.java:45
ClassChangeTextBehaviorTest
Basic tests showcasing simple view matchers and actions like {@link ViewMatchers#withId}, {@link ViewActions#click} and {@link ViewActions#typeText}.
ui/espresso/BasicSample/app/src/androidTest/java/com/example/android/testing/espresso/BasicSample/ChangeTextBehaviorTest.java:46
ClassChangeTextBehaviorTest
Same as Espresso's BasicSample, but with an Idling Resource to help with synchronization.
ui/espresso/IdlingResourceSample/app/src/androidTest/java/com/example/android/testing/espresso/IdlingResourceSample/ChangeTextBehaviorTest.java:42
ClassContactsActivity
This a placeholder Activity for a contacts screen. This activity is never opened and does not contain any real contact data for keeping this sample si
ui/espresso/IntentsBasicSample/app/src/main/java/com/example/android/testing/espresso/IntentsBasicSample/ContactsActivity.java:28
ClassCustomAdapter
Provides views to {@link RecyclerView} with data from a data set.
ui/espresso/RecyclerViewSample/app/src/main/java/com/example/android/testing/espresso/RecyclerViewSample/CustomAdapter.java:31
ClassDefaultProcessActivity
Activity running in the default process which matches the application package
ui/espresso/MultiProcessSample/app/src/main/java/com/example/android/testing/espresso/multiprocesssample/DefaultProcessActivity.java:30
InterfaceDelayerCallback
ui/espresso/IdlingResourceSample/app/src/main/java/com/example/android/testing/espresso/IdlingResourceSample/MessageDelayer.java:35
ClassDialerActivity
Simple Dialer Activity which shows an {@link EditText} field to enter a phone number. Upon pressing the call button the number entered in the input fi
ui/espresso/IntentsBasicSample/app/src/main/java/com/example/android/testing/espresso/IntentsBasicSample/DialerActivity.java:39
ClassDialerActivityTest
ui/espresso/IntentsBasicSample/app/src/sharedTest/java/com/example/android/testing/espresso/IntentsBasicSample/DialerActivityTest.java:57
ClassEmailValidator
An Email format validator for {@link android.widget.EditText}.
unit/BasicSample/app/src/main/java/com/example/android/testing/unittesting/BasicSample/EmailValidator.java:27
ClassEmailValidatorTest
Unit tests for the EmailValidator logic.
unit/BasicSample/app/src/test/java/com/example/android/testing/unittesting/BasicSample/EmailValidatorTest.java:28
ClassExampleInstrumentedTest
ui/espresso/MultiProcessSample/app/src/androidTest/java/com/example/android/testing/espresso/multiprocesssample/ExampleInstrumentedTest.java:40
ClassHintMatcher
A custom matcher that checks the hint property of an {@link android.widget.EditText}. It accepts either a {@link String} or a {@link org.hamcrest.Matc
runner/AndroidJunitRunnerSample/app/src/androidTest/java/com/example/android/testing/androidjunitrunnersample/HintMatcher.java:34
ClassHintMatcher
A custom matcher that checks the hint property of an {@link EditText}. It accepts either a {@link String} or a {@link Matcher}.
ui/espresso/CustomMatcherSample/app/src/sharedTest/java/com/example/android/testing/espresso/CustomMatcherSample/HintMatcher.java:32
ClassHintMatchersTest
Tests for {@link MainActivity} showcasing the use of custom matchers (see {@link HintMatcher#withHint}).
ui/espresso/CustomMatcherSample/app/src/sharedTest/java/com/example/android/testing/espresso/CustomMatcherSample/HintMatchersTest.java:46
ClassImageViewHasDrawableMatcher
A Matcher for Espresso that checks if an ImageView has a drawable applied to it.
ui/espresso/IntentsAdvancedSample/app/src/androidTest/java/com/example/android/testing/espresso/intents/AdvancedSample/ImageViewHasDrawableMatcher.java:29
ClassImageViewerActivity
Captures an image and displays a thumbnail of the result.
ui/espresso/IntentsAdvancedSample/app/src/main/java/com/example/android/testing/espresso/intents/AdvancedSample/ImageViewerActivity.java:31
ClassImageViewerActivityTest
Espresso tests for {@link ImageViewerActivity}.
ui/espresso/IntentsAdvancedSample/app/src/androidTest/java/com/example/android/testing/espresso/intents/AdvancedSample/ImageViewerActivityTest.java:50
ClassInstrumentationTestSuite
Runs all Junit3 and Junit4 Instrumentation tests.
runner/AndroidJunitRunnerSample/app/src/androidTest/java/com/example/android/testing/androidjunitrunnersample/suite/InstrumentationTestSuite.java:28
ClassLocalBinder
integration/ServiceTestRuleSample/app/src/main/java/com/example/android/testing/ServiceTestRuleSample/LocalService.java:54
ClassLocalService
{@link Service} that generates random numbers. <p> A seed for the random number generator can be set via the {@link Intent} passed to {@link #onBind(I
integration/ServiceTestRuleSample/app/src/main/java/com/example/android/testing/ServiceTestRuleSample/LocalService.java:32
ClassLocalServiceTest
JUnit4 test that uses a {@link ServiceTestRule} to interact with a bound service. <p> {@link ServiceTestRule} is a JUnit rule that provides a simplifi
integration/ServiceTestRuleSample/app/src/androidTest/java/com/example/android/testing/ServiceTestRuleSample/LocalServiceTest.java:53
ClassLogHistory
Model that stores a parcelable log of entries, each with a timestamp.
unit/BasicUnitAndroidTest/app/src/main/java/com/example/android/testing/unittesting/basicunitandroidtest/LogHistory.java:28
ClassLogHistoryAndroidUnitTest
Tests that the parcelable interface is implemented correctly.
unit/BasicUnitAndroidTest/app/src/androidTest/java/com/example/android/testing/unittesting/basicunitandroidtest/LogHistoryAndroidUnitTest.java:35
ClassLongListActivity
An activity displaying a long list with a text view and a toggle button. The last clicked row is displayed at the top.
ui/espresso/DataAdapterSample/app/src/main/java/com/example/android/testing/espresso/DataAdapterSample/LongListActivity.java:40
ClassLongListActivityTest
Tests to verify that the behavior of {@link LongListActivity} is correct. <p> Note that in order to scroll the list you shouldn't use {@link ViewActio
ui/espresso/DataAdapterSample/app/src/sharedTest/java/com/example/android/testing/espresso/DataAdapterSample/LongListActivityTest.java:54
ClassLongListAdapter
ui/espresso/DataAdapterSample/app/src/main/java/com/example/android/testing/espresso/DataAdapterSample/LongListActivity.java:90
ClassMainActivity
An {@link Activity} that represents an input form page where the user can provide his name, date of birth and email address. The personal information
unit/BasicSample/app/src/main/java/com/example/android/testing/unittesting/BasicSample/MainActivity.java:36
ClassMainActivity
Lets the user add lines to a multi-line log. When the device is rotated, the state is saved and restored.
unit/BasicUnitAndroidTest/app/src/main/java/com/example/android/testing/unittesting/basicunitandroidtest/MainActivity.java:35
ClassMainActivity
An {@link Activity} that gets a text string from the user and displays it back when the user clicks on one of the two buttons. The first one shows it
ui/uiautomator/BasicSample/app/src/main/java/com/example/android/testing/uiautomator/BasicSample/MainActivity.java:31
ClassMainActivity
An empty {@link Activity} that Espresso Device APIs are tested against.
ui/espresso/EspressoDeviceSample/app/src/main/java/com/example/android/testing/espresso/EspressoDeviceSample/MainActivity.java:25
ClassMainActivity
An {@link Activity} that gets a text string from the user and displays it back when the user clicks on one of the two buttons. The first one shows it
ui/espresso/BasicSample/app/src/main/java/com/example/android/testing/espresso/BasicSample/MainActivity.java:31
ClassMainActivity
Asks the user for a coffee preparation and shows if it is valid. <p>Valid inputs are anything ending in "coffee" or strings listed in {@link MainActiv
ui/espresso/CustomMatcherSample/app/src/main/java/com/example/android/testing/espresso/CustomMatcherSample/MainActivity.java:34
ClassMainActivity
Gets a text String from the user and displays it back after a while.
ui/espresso/IdlingResourceSample/app/src/main/java/com/example/android/testing/espresso/IdlingResourceSample/MainActivity.java:34
ClassMainActivity
Shows a list using a RecyclerView.
ui/espresso/RecyclerViewSample/app/src/main/java/com/example/android/testing/espresso/RecyclerViewSample/MainActivity.java:30
ClassMainActivity
An {@link Activity} that gets a text string from the user and displays it back when the user clicks on one of the two buttons. The first one shows it
ui/espresso/AccessibilitySample/app/src/main/java/com/example/android/testing/espresso/AccessibilitySample/MainActivity.java:32
ClassMessageDelayer
Takes a String and returns it after a while via a callback. <p> This executes a long-running operation on a different thread that results in problems
ui/espresso/IdlingResourceSample/app/src/main/java/com/example/android/testing/espresso/IdlingResourceSample/MessageDelayer.java:31
ClassMultiWindowTest
Demonstrates dealing with multiple windows. <p/> Android's Window system allows multiple view hierarchies to layer on top of each other. <p/> A real w
ui/espresso/MultiWindowSample/app/src/androidTest/java/com/example/android/testing/espresso/MultiWindowSample/MultiWindowTest.java:67
ClassOperationHintInstrumentationTest
JUnit3 Ui Tests for {@link CalculatorActivity} using the {@link AndroidJUnitRunner}. This class uses the Junit3 syntax for tests. <p> With the new An
runner/AndroidJunitRunnerSample/app/src/androidTest/java/com/example/android/testing/androidjunitrunnersample/OperationHintInstrumentationTest.java:43
ClassOperationHintLegacyInstrumentationTest
JUnit3 Ui Tests for {@link CalculatorActivity} using the {@link AndroidJUnitRunner}. This class uses the Junit3 syntax for tests and extends {@link Ac
runner/AndroidJunitRunnerSample/app/src/androidTest/java/com/example/android/testing/androidjunitrunnersample/OperationHintLegacyInstrumentationTest.java:47
EnumOperator
runner/AndroidTestOrchestratorSample/app/src/main/java/com/example/android/testing/androidtestorchestratorsample/Calculator.java:26
EnumOperator
runner/AndroidTestOrchestratorWithTestCoverageSample/app/src/main/java/com/example/android/testing/androidtestorchestratorsample/Calculator.java:26
EnumOperator
runner/AndroidJunitRunnerSample/app/src/main/java/com/example/android/testing/androidjunitrunnersample/Calculator.java:26
ClassPrivateProcessActivity
Activity running in a private process which is manually defined in the AndroidManifest.xml using the android:process attribute. <p> <p>From D.A.C: "If
ui/espresso/MultiProcessSample/app/src/main/java/com/example/android/testing/espresso/multiprocesssample/PrivateProcessActivity.java:37
ClassRecyclerViewSampleTest
Test class showcasing some {@link RecyclerViewActions} from Espresso.
ui/espresso/RecyclerViewSample/app/src/androidTest/java/com/example/android/testing/espresso/RecyclerViewSample/RecyclerViewSampleTest.java:47
ClassScreenshotJavaTest
Equivalent of {@link ScreenshotTest} for java.
ui/espresso/ScreenshotSample/app/src/androidTest/java/com/example/android/testing/espresso/screenshotsample/ScreenshotJavaTest.java:26
ClassSharedPreferenceEntry
Model class containing personal information that will be saved to SharedPreferences.
unit/BasicSample/app/src/main/java/com/example/android/testing/unittesting/BasicSample/SharedPreferenceEntry.java:24
ClassSharedPreferencesHelper
Helper class to manage access to {@link SharedPreferences}.
unit/BasicSample/app/src/main/java/com/example/android/testing/unittesting/BasicSample/SharedPreferencesHelper.java:26
ClassSharedPreferencesHelperTest
Unit tests for the {@link SharedPreferencesHelper} that mocks {@link SharedPreferences}.
unit/BasicSample/app/src/test/java/com/example/android/testing/unittesting/BasicSample/SharedPreferencesHelperTest.java:36
ClassShowTextActivity
A simple {@link Activity} that shows a message.
ui/uiautomator/BasicSample/app/src/main/java/com/example/android/testing/uiautomator/BasicSample/ShowTextActivity.java:30
ClassShowTextActivity
A simple {@link Activity} that shows a message.
ui/espresso/BasicSample/app/src/main/java/com/example/android/testing/espresso/BasicSample/ShowTextActivity.java:30
ClassSimpleIdlingResource
A very simple implementation of {@link IdlingResource}. <p> Consider using CountingIdlingResource from espresso-contrib package if you use this class
ui/espresso/IdlingResourceSample/app/src/main/java/com/example/android/testing/espresso/IdlingResourceSample/IdlingResource/SimpleIdlingResource.java:31
ClassSuggestActivity
An {@link android.app.Activity} that shows an editable text and gives suggestions to the user.
ui/espresso/MultiWindowSample/app/src/main/java/com/example/android/testing/espresso/MultiWindowSample/SuggestActivity.java:26
ClassUnitTestSuite
Runs all unit tests.
runner/AndroidJunitRunnerSample/app/src/androidTest/java/com/example/android/testing/androidjunitrunnersample/suite/UnitTestSuite.java:28
ClassUtil
Class contains static util methods for reuse
ui/espresso/MultiProcessSample/app/src/main/java/com/example/android/testing/espresso/multiprocesssample/Util.java:30
ClassViewHolder
Provide a reference to the type of views that you are using (custom {@link RecyclerView.ViewHolder}).
ui/espresso/RecyclerViewSample/app/src/main/java/com/example/android/testing/espresso/RecyclerViewSample/CustomAdapter.java:41
ClassWebViewActivity
An {@link Activity} that gets a text string from the user and displays it back when the user clicks on one of the two buttons. The first one shows it
ui/espresso/WebBasicSample/app/src/main/java/com/example/android/testing/espresso/web/BasicSample/WebViewActivity.java:35
ClassWebViewActivityTest
Basic sample that shows the usage of Espresso web showcasing {@link Web#onWebView()} API. <p> The sample has a simple layout which contains a single {
ui/espresso/WebBasicSample/app/src/androidTest/java/com/example/android/testing/espresso/web/BasicSample/WebViewActivityTest.java:49