@@ -0,0 +1,1388 @@
+package ca.ualberta.cs.lonelytwitter.test;%0A%0Aimport android.app.Activity;%0Aimport android.app.Instrumentation;%0Aimport android.test.ActivityInstrumentationTestCase2;%0Aimport android.test.ViewAsserts;%0Aimport android.widget.Button;%0Aimport android.widget.EditText;%0Aimport android.widget.ListView;%0Aimport android.widget.TextView;%0Aimport ca.ualberta.cs.lonelytwitter.LonelyTwitterActivity;%0Aimport ca.ualberta.cs.lonelytwitter.NormalTweetModel;%0A%0A/*%0A * generate this class with new.. JUnit Test Case%0A * set superclass to ActivityInstrumentationTestCase2%0A */%0Apublic class LonelyTwitterActivityUITest extends%0A%09%09ActivityInstrumentationTestCase2%3CLonelyTwitterActivity%3E %7B%0A%0A%09Instrumentation instrumentation;%0A%09Activity activity;%0A%09EditText textInput;%0A%09%0A%09public LonelyTwitterActivityUITest() %7B%0A%09%09super(LonelyTwitterActivity.class);%0A%09%7D%0A%0A%09protected void setUp() throws Exception %7B%0A%09%09super.setUp();%0A%09%09instrumentation = getInstrumentation();%0A%09%09activity = getActivity();%0A%0A%09%09textInput = ((EditText) activity.findViewById(ca.ualberta.cs.lonelytwitter.R.id.body));%0A%09%7D%0A%09%0A%09/*%0A%09 * fills in the input text field and clicks the 'save'%0A%09 * button for the activity under test%0A%09 */%0A%09private void makeTweet(String text) %7B%0A%09%09assertNotNull(activity.findViewById(ca.ualberta.cs.lonelytwitter.R.id.save));%0A%09%09textInput.setText(text);%0A%09%09((Button) activity.findViewById(ca.ualberta.cs.lonelytwitter.R.id.save)).performClick();%0A%09%7D%0A%7D%0A

add LonelyTwitterActivityUITest