I am trying to write unit tests for my application. I have a button
that initiates a call, and to test it I am trying to use an Activity
Monitor to block the call, but for some reason the call is allowed to
execute, causing the test to fail. My test case is written as
follows:
public void
The Dialer activity is not blocked, it is allowed to launch. Also,
the assertEquals(1, monitor.getHits()) fails with a value of 0.
On Apr 11, 6:27 pm, Dianne Hackborn hack...@android.com wrote:
What is the error you are getting?
On Mon, Apr 11, 2011 at 1:30 PM, Brian Phagan phagan
, monitor.getHits());
}
On Apr 11, 6:50 pm, Dianne Hackborn hack...@android.com wrote:
Your intent filter also needs to handle CATEGORY_DEFAULT. This should be
the exact same thing you would put in the manifest to handle an intent.
On Mon, Apr 11, 2011 at 4:43 PM, Brian Phagan phagan
started?
On Mon, Apr 11, 2011 at 5:24 PM, Brian Phagan phagan@gmail.com wrote:
I have added the category to the intent filter, but still no luck.
Code now looks like this:
public void test2Launches() {
Instrumentation instr = getInstrumentation
4 matches
Mail list logo