commit | f91dfc966f666af36ebe44ea4153b413c85f6e57 | [log] [tgz] |
---|---|---|
author | Christian Williams <xian@squareup.com> | Wed Mar 13 18:26:14 2013 -0700 |
committer | Christian Williams <xian@squareup.com> | Thu Mar 14 13:17:33 2013 -0700 |
tree | b3c7bf94bec3f9a882e1ff900ef0da36900531f0 | |
parent | fb7d8225c98c9533cd5f55da67520d0e86ba0857 [diff] |
View now requires a non-null Context. Android makes a half-assed attempt to support null contexts, presumably for testing, but it mostly just obscures problems later on. We now throw immediately if you try to construct a view without a context.
An Android Testing Framework
Robolectric can be built using either Maven or Ant. Both Eclipse (with the M2Eclipse plug-in) and IntelliJ can import the pom.xml file and will automatically generate their project files from it.
For more information about how to use Robolectric on your project, extend its functionality, and join the community of contributors, please see: http://pivotal.github.com/robolectric/index.html
If your build fails because of maps.jar is missing then install all the android extra and run:
git clone https://github.com/mosabua/maven-android-sdk-deployer.git cd maven-android-sdk-deployer/ maven install -P <ANDROID_VERSION>