Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
isInitialized
visible for testing method (#5163)
Glide provides an `init` method for test authors and rule writers to initialize Glide with custom executors but due to the transparent way it self initializes and tears down when re-initialized it makes it hard to assert the state of Glide. One easy way to misconfigure Glide when using dependency injection is for something to obtain an instance before the test has called `init`, in this case the instance that was read will be torn down but will typically fail in mysterious ways; Glide doesn't throw an exception when a torn down instance is attempted to be loaded from, usually the request will be rejected by the executors because they've been shutdown. Adding `isInitialized` allows test authors and rule writers to assert that Glide has not been initialized before the test initializes Glide.
- Loading branch information