You cannot post messages because only members can post, and you are not currently a member.
Description:
A support and discussion forum for Robolectric, an alternative unit testing framework for Android applications.
|
|
|
System service testing
|
| |
How I can test a system service? In my case I need to test DevicePolicyManager. Below piece of my code: public class DeviceAdministratorHelper { DevicePolicyManager devicePolicyManager; ComponentName adminComponentName; public DeviceAdministratorHelper(Cont ext context) { devicePolicyManager = (DevicePolicyManager)... more »
|
|
Robolectric 2.0-rc2 and ActionBarSherlock
|
| |
Hey folks, We're trying to get a relatively new Android project running on ABS with the latest Robolectric (RC2). We're also trying to use the special sauce found in this gist <[link]> to get an ABS implementation loaded in tests. But we're getting failures when our... more »
|
|
org.jetbrains.annotations.NotN ull vs javax.annotations.Nonnull
|
| |
I noticed the Robolectric source code is using org.jetbrains.annotations.NotN ull. Any reason for using that over the more standard javax.annotations.Nonnull? I'm try to build Robolectric v2 RC2, and it would be easier if I didn't have to account for that dependency. Note that Intellij now supports various flavors of Nonnull/NotNull (... more »
|
|
Robolectric 2.0 rc2
|
| |
2.0-r2 just hit central! It includes some bug fixes and performance
improvements.
Unless we hit any showstopper bugs, I'll redeploy this as 2.0 final
tomorrow!
--X [typos courtesy of my iPhone]
|
|
setContentView: URISyntaxException inflating TextView
|
| |
Hello, I'm new to Android development and Roobolectric. Following the site instructions I have created a project in Intellij. When I add a TextView to my main.xml I get the following errors: WARNING: no system properties value for ro.build.date.utc DEBUG: Loading resources for com.cjra.MyProject from .\res...... more »
|
|
Robolectric has a new home!
|
| |
To give us more flexible management of access for community contributors,
Robolectric is moving to its own GitHub org.
From now on you'll find the main Robolectric project here:
[link]
You can update your git repos with this command:
$ git remote set-url origin git://github.com/robolectric/r obolectric.git... more »
|
|
Robolectric 2.0 alpha 3
|
| |
2.0 is feature complete!
The third alpha of 2.0 has just made its way out to maven central. Check
out this blog post<[link]>
for
details. Lots of good stuff here for early adopters to try out.
There are some big changes here. Would love feedback!... more »
|
|
ABS Layout not found.
|
| |
Folks, I'm struggling to get up and running with Roboelectric (2.0-alpha-2) and ABS (4.2.0). I've setup the test runner 'SDK_INT' level as suggested by Jake Wharton here: [link] I've also tried adding the 'MockActionBar' as described... more »
|
|
customising the robolectric test runner failing in robolectric 1.2
|
| |
*public class CustomTestRunner extends RobolectricTestRunner{* ** *public SBOTestRunner(Class<?> testClass) throws InitializationError{* *super(testClass);* *// TODO Auto-generated constructor stub * *}* *@Override protected Application createApplication() {* ** *return new customApplication();*... more »
|
|
Robolectric : JUnit for LAunching Activity
|
| |
Hi All, I have a scenario where I am launching an Activity from a simple Class method like Class test{ public void LaunchActivity(Context context , Activity myActivity){ Intent myIntent = new Intent(context, myActivity); myIntent .setFlags(Intent.FLAG_ACTIVITY _NEW_TASK);... more »
|
|
|