History log of /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
084d588b645d53c1110ff24b82433b5a331cc6d3 18-Jan-2018 James Lemieux <jplemieux@google.com> Merge robolectric/master up to commit 2e97d70

Test: make -j56 Run_all_robolectric_tests
Change-Id: I0158d74ad9ce9e412d396993e0bfbd50ecd412c2
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
9f69dc80a8ac7e48cbf50f65974d4986ab7f00ec 08-Dec-2017 Christian Williams <christianw@google.com> Improved device configuration from @Config(qualifiers).

* Added qualifier defaults and rules as described here:
http://robolectric.org/device-configuration/
* Qualifiers strings prefixed with '+' are additive.
* ShadowDisplayManager provides testing APIs for adding, changing, and
removing displays for JELLY_BEAN_MR1 and up.
* Display and DisplayMetric measurements are much more likely to be
correct.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
cf046e2d818cdfa1c7b3da4e38e2bd82cffe14a3 06-Dec-2017 Christian Williams <antixian666@gmail.com> Update RobolectricTest.java

System resources `DisplayMetrics.density` isn't set correctly yet.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
06714013fc2f9d3eb282ba97e4ac8bf2345122fb 22-Nov-2017 Christian Williams <christianw@google.com> System and app resources should have correct DisplayMetrics based on config.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
da2b1ca3f8467b09308c99bb4b6e50304aaa56d8 25-Sep-2017 Jonathan Gerrish <jonathan@indiekid.org> Replace TestOnClickListener with mock.

This is shared between a shadow test which should move to the
shadow/framework module and RobolectricTest which should stay where it
is.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
ceb8863e0cd0706c72351f063bc7af3c7d76d120 22-Sep-2017 Jonathan Gerrish <jonathan@indiekid.rg> Remove custom subclasses of RobolectricTestRunner.

Use standard RobolectricTestRunner instead. Configure default SDKs to
use from properties file.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
4ab0e8e45cddf45fcf4911c2ade15fcb6fe99252 20-Jul-2017 Christian Williams <christianw@google.com> Remove last traces of RobolectricPackageManager.

Use shadowOf(packageManager) instead.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
88fbaf29896f691addb303eaaf4b5ece4698e39b 19-Jul-2017 Jonathan Gerrish <jonathan@indiekid.org> Remove DefaultPackageManager (#3203)

* Make TempDirectory shared across entire test env.

Various Shadows will now access this base dir creating directories
underneath it.

* Filter invalid characters from directory name

* Don't blow up when ShadowPackageManager.addPackage() called twice for
same package.

* Remove tests checking for ShadowPackageManager + ShadowEnvironment
reset()

These directories are cleaned up in ParallelUniverse now.

* Fix failing tests

* Initial cleanups.

Move DefaultPackageManager to shadows module.
Instantial DefaultPackageManager inside of
RuntimeEnvironment.setRobolectricPackageMananger() which becomes
RuntimeEnvironment.initRobolectricPackageManager()

Remove methods from ShadowApplicationPackageManager and
ShadowPackageManager that called actual PackageManager code on
DefaultPackageManager when it used to extend PackageManager, these no
longer need to be @Implemented as now it will just call through to the
real ApplicationpackageMananger.

Remove code to initialize PackageInstaller. Add method to dynamic proxy
in ActivityThread for IPackageManager to return a null IPackageInstaller
so the above change doesn't NPE.

* More cleanup

* DefaultPackageManager no longer extends RobolectricPackageManager.

* Remove now unused methods from DefaultPackageManager

* fix build

* Clean up ParallelUniverse a little

* Moved some easy methods from DefaultPackageManager to ShadowPackageManager

* ShadowPackageManager owns DefaultPackageManager instance, not RuntimeEnvironment.

* Inlined a bunch of DefaultPackageManager methods

* Inline rest of DefaultPackageManager

* Clean up and organize ShadowPackageManager +
ShadowApplicationPackageManager

* Fix broken build

* @Deprecate RobolectricPackageManager methods.

Just the ones that exist in the corresponding PackageManager class.

Prefer users to call framework methods rather than shadows.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
1b698c5055f7ad57d68b4b8fca1d3d7aa5fce1b0 10-Jul-2017 Jonathan Gerrish <jonathan@indiekid.org> Make TempDirectory shared across entire test env. (#3199)

* Make TempDirectory shared across entire test env.

Various Shadows will now access this base dir creating directories
underneath it.

* Filter invalid characters from directory name

* Don't blow up when ShadowPackageManager.addPackage() called twice for
same package.

* Remove tests checking for ShadowPackageManager + ShadowEnvironment
reset()

These directories are cleaned up in ParallelUniverse now.

* Fix failing tests

* Extract data dir path name sanitization to a method with doc.

* Removed unused import
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
65d9be951749c285f8cd152d53f162feb26750c3 16-Feb-2017 Jonathan Gerrish <jonathan@indiekid.rg> PackageManager cleanup.

* @Deprecate RuntimeEnvironment.getPackageManager() - users should
prefer Android APIs. Remove usages internally.
* Move Activity Intent resolve info population into
DefaultPackageManager from ParallelUniverse (this is where similar code
for content providers etc live). This could lead to completely lazily
loading Manifest parsing code.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
482fc225583933a012d6e1595bbd5c3b2e1e3a50 26-Jan-2017 Christian Williams <christianw@google.com> Move DefaultPackageManager back for now.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
a09e6f7e24d708115c39c16b5ee4ff806e29bca5 26-Jan-2017 Christian Williams <christianw@google.com> Move Shadow to org.robolectric.shadow.api.

Retain original class and @Deprecate.
Rename shadows-api module to shadow-api.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
e35d46d2fa65e9b4b79163ac3fd2b074d833f8ae 25-Jan-2017 Christian Williams <christianw@google.com> Move stuff around.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
704d59a9e57b28939ba5c709cf4b50d72aa072e6 25-Jan-2017 Christian Williams <christianw@google.com> Class acquisition rules are simplified. The following packages are not acquired:
* `java.*`
* `sun.*`
* `org.robolectric.annotation.*`
* `org.robolectric.internal.*`
* `org.robolectric.util.*`
* `org.junit.*`
with the exception of `RobolectricInternals`, `InvokeDynamicSupport`, and `Shadow`.

Some classes and tests have been rearranged to conform.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
feb50ebe73ed058676f5027d5f77235d1cb2697b 23-Dec-2016 Christian Williams <christianw@google.com> Rename WithDefaults runner to SelfTest.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
824a595fdb7abd4f8194988997d630e7a96c0fd6 07-Dec-2016 Jonathan Gerrish <jonathan@indiekid.rg> Fix failing test
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
4c418cf24d3e5b7fa2bc39a7c000be627500ad6c 01-Dec-2016 Jonathan Gerrish <jonathan@indiekid.org> Add gradle configuration for API 25
Add SdkConfig for API 25
Prefer to use ReflectionHelpers.createNullProxy() rather than hand coded stubs of Framework classes as it is tollerant to framework API changes.
Use API 24 RuntimeAdapter for API 25
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
32f2dfe1c102640d95d5ed913076c1c8d6f48eea 16-Aug-2016 Jonathan Gerrish <jonathan@indiekid.rg> Remove Robolectric.buildContextWrapper. ContextWrapper subclasses must either attach the base context bu passing it up through super() or themselves call attachBaseContext() through some other init method. As such it is not appropriate to create them using a compontent builder.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
6dd82fcc528dc19577687cf33757a423923e1f63 20-May-2016 Jonathan Gerrish <jonathan@indiekid.org> Add Robolectric.buildContextWrapper() (#2468)

* Add Robolectric.buildContextWrapper() which allows users to create their own instances ContextWrapper subclasses with an attached base context. Also supports constructor parameters.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
49cf1921ac93ca3908ac99a33a72a57123eef00f 11-Mar-2016 Jonathan Gerrish <jongerrish@google.com> ShadowContextWrapper cleanup

Remove getAssets(), getResources(), getText(), getString(int) and getString(int, Object..) from ShadowContext and subclasses.

We should use framework code instead. It is suspected that the excessive shadowing here is causing:-

#2315
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
8a7954b7d7c80334d840f5949eeec201fc90b2e0 16-Jun-2015 Erich Douglass <erich.douglass@gmail.com> Use the annotation processor to generate a mapping of android class
names to shadow class names for all available shadows.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
58f450f918d97e86aa04d351fe2aee416a0da8a4 28-Apr-2015 Erich Douglass <erich.douglass@gmail.com> Fix Robolectric.getBackgroundThreadScheduler so it actually returns the
background thread scheduler.

Closes #1758. Closes #1604.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
e2655cc438ae01e10819052a245f60abcac5f817 01-May-2015 Fr Jeremy Krieg <fr.jeremy@stnectarios.org.au> Changed order of reset/teardown to make sure shadows are
reset before the environment is cleaned up. Part of fix
for #1754.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
509c2b772705f638b0585d4cae304b2c5e7bdd3e 02-Dec-2014 Erich Douglass <erich.douglass@gmail.com> Move httpclient shadows into robolectric-fakehttp.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
0e0c6cbcda5605ac3f072cc6ce014347db763b75 27-Nov-2014 Aaron VonderHaar <gruen0aermel@gmail.com> Move methods out of Robolectric that belong in robolectric-shadows.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
7b930dadfce5577cb8e4a07e062188a6abff3691 27-Nov-2014 Aaron VonderHaar <gruen0aermel@gmail.com> Extract FakeHttp from Robolectric, and put it in robolectric-shadows.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
2de5ff504e035e2d7f4d3ccece46800580d29f7e 27-Nov-2014 Aaron VonderHaar <gruen0aermel@gmail.com> Inline Robolectric methods that use ShadowLooper.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
8b0ff059fe5f99169398bef3fc076240b2b0996b 25-Nov-2014 Erich Douglass <erich.douglass@gmail.com> Run annotation processor on generated shadows.

Inline shadowOf_ and replace some calls with generated shadowOf methods.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
1f7901d153aed7f8f66c487a4f8fa2001ed1440e 25-Nov-2014 Erich Douglass <erich.douglass@gmail.com> Rename and repackage methods in MagicObject and ShadowThingy.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
3b8b7229bea6a6639d97b3d6ba4e971e37341e9f 21-Nov-2014 Ryan Spore <ry4n1m3@gmail.com> Move shadows into robolectric-shadows module.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
006481c035ec4736b0b7a88e5dde9efc12591cd2 12-Nov-2014 Erich Douglass and Ryan Spore <pair+erich+ryan@pivotallabs.com> Renamed Shadows to ShadowExtractor and renamed RobolectricBase to Shadows.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
27e2f8894866576ca7661ed2cd4b24f184df3da7 12-Nov-2014 Erich Douglass and Ryan Spore <pair+erich+ryan@pivotallabs.com> Remove Robolectric.shadowOf methods in favor of the generated RobolectricBase.shadowOf.

Change Settings.NameValueTable subclasses to avoid annotation processor warnings.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
e20bf1d6276aedaa0f48bd5e10d6690d13e9d4e1 22-Oct-2014 Ryan Spore <pair+ryan@pivotallabs.com> Switch from fest-assert to assertj

fix xml indentation in pom
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java
7cb2faa35d4f3f158989b7bb72124996d22b9abb 26-Aug-2014 Fr Jeremy Krieg <fr.jeremy@stnectarios.org.au> Imported rap into the robolectric respository as submodule robolectric-processor.
Refactored to move core into robolectric submodule and robolectric-annotations as common, with robolectric-parent as the parent POM for all submodules.
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/RobolectricTest.java