Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for parsing ApplicationInfo from the manifest #52

Merged
merged 1 commit into from Mar 20, 2011

Conversation

roberttaylor426
Copy link
Contributor

As a response to missing ApplicationInfo support, and problems running Roboguice 1.1 with Robolectric (as reported here: http://groups.google.com/group/robolectric/browse_thread/thread/3e92bc828455d6e2, here: https://github.com/pivotal/robolectric/issues#issue/45 and here: http://groups.google.com/group/robolectric/browse_thread/thread/3d03a56bb595b7cc) I've updated the RobolectricPackageManager, added a couple of Shadow classes, modified RobolectricConfig to do the necessary manifest parsing and updated the tests accordingly.

In order for the RobolectricPackageManager to have access to the necessary manifest properties, I injected a new instance of the RobolectricConfig through the RPM constructor. As I'm new to the codebase, I'm not sure if this is the best way to do this...

This is my first time using Git/GitHub, and so I wasn't sure how to exclude changes I made to the pom from the pull request (which you can safely ignore).

Anyway, love the framework.

Rob

@pivotal-legacy
Copy link

It's hard to scan this online because the diffs are showing every line of every file changed (probably auto-reformatting from some editor). I expect that it'll be much easier once it's pulled down and from what I've seen of it so far it will be a pleasure. Thanks for including tests!

@pivotal-legacy pivotal-legacy merged commit 4a110f7 into robolectric:master Mar 20, 2011
xian pushed a commit that referenced this pull request Oct 24, 2012
Support TextView.getPaint()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants