This screencast is part of a skill pack called Android Testing.
Unit testing your classes helps ensure that they work correctly based on controlled inputs but doing the setup can be painful if you have a lot of dependencies. Learn how to create mock objects using Mockito to simplify your setup and improve the readability of your tests.
There are a wide variety of test doubles you can use to make testing easier. In this video we will discuss mocks and spies, what their differences are and when you would use each of them.
Integration tests provide a way to verify the features in your application continue to work as you expect while adding new features and refactoring existing ones. In this screencast you will learn how to use the Espresso Test Recorder tool in Android Studio to add new integration tests to your test suite quickly and easily.
As applications are developed you will often need to add additional fields to your database. The architecture component Room achieves this by using Migrations. In this screencast, you will learn how to test your database migrations so you can be confident that your apps data is maintained in a clean state.
Explore other screencasts related to this topic.
In this video you will learn about ConstraintLayout. It will cover how to use the graphical editor, how to add constraints to your views and tweak their attributes to position them on screen, and it has an example of converting an existing layout to use ConstraintLayout.
Android Oreo introduces Adaptive Icons which allow device manufacturers to choose the outline, or mask, of all app icons on the device. This guarantees that all app icons will be uniform on each device, whether they be square, rounded, or circular. In this screencast, part 2 of the series, we'll now show you how to generate your icon to take advantage of this new Android O feature.
Firebase Cloud Storage provides an easy way to store files remotely and fetch them when needed. In this video learn the basics of the cloud storage api to upload, download, and delete files.
As of Android P, the FingerprintManager is deprecated in favor of the BiometricPrompt API. In this screencast, we’ll quickly review a previous FingerprintManager implementation and then dive into setting up your application to use BiometricPrompt.
App shortcuts give you the ability to provide convenient shortcuts to specific actions in your application. They provide an entry point to different parts of your application. In this video learn how to implement app shortcuts and give your users quick access to the functionality they want.
Android O has the ability to change the size of text in a TextView based on the size of the view. In this screencast learn how to add the autosizing and the different modes available.