Please help, I am unable to integrate Junit with Android. I am using Junit
3, I have also tried Junit4.

*

package* com.android.test;

 *

import* com.android.MyActivity;

*

import* android.app.Activity;
*

import* android.test.ActivityInstrumentationTestCase2;

*

public* *class* TestMyView *extends
*

ActivityInstrumentationTestCase2<MyActivity> {

Activity myActivity ;

*public* TestMyView(String pkg, Class<MyActivity> activityClass) {

*super*(pkg, activityClass);

myActivity = getActivity() ;

}

*protected* *void* setUp() *throws* Exception {

*super*.setUp() ;

}

*public* *void* testSomethingSilly() {

*assertNotNull*(myActivity) ;

}

 *public* *void* testSomethingSillier() {

*assertNotNull*(myActivity) ;

}

*protected* *void* tearDown() *throws* Exception {

*super*.tearDown();

}

}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to