package ca.ualberta.CMPUT301W15T06.test;

import android.app.Activity;
import android.app.Instrumentation;
import android.test.ActivityInstrumentationTestCase2;
import android.view.View;
import ca.ualberta.CMPUT301W15T06.ClaimantReciptActivity;

public class ExpenseItemReceiptUITest extends
		ActivityInstrumentationTestCase2<ClaimantReciptActivity> {

	Instrumentation instrumentation;
	Activity activity;
	
	public ExpenseItemReceiptUITest() {
        super(ClaimantReciptActivity.class);
        
	}
	
	protected void setUp() throws Exception {
		super.setUp();
		instrumentation = getInstrumentation();
		activity = getActivity();
	}
	
	//test for take photo ui
	private void takePhoto(String tag) {
		assertNotNull(activity.findViewById(ca.ualberta.CMPUT301W15T06.R.id.takephoto));
		((View) activity.findViewById(ca.ualberta.CMPUT301W15T06.R.id.takephoto)).performClick();
	}
	
	//test for delete photo ui
	private void deletePhoto(String tag) {
		assertNotNull(activity.findViewById(ca.ualberta.CMPUT301W15T06.R.id.deletePhoto));
		((View) activity.findViewById(ca.ualberta.CMPUT301W15T06.R.id.deletePhoto)).performClick();
	}
	
	
	

}
@@ -626,32 +626,195 @@
 ctivity();%0A%09%7D%0A%09%0A
+%09//test for photo DISPLAY UI%0A%09private void displayPhoto() %7B%0A%09%09assertNotNull(activity.findViewById(ca.ualberta.CMPUT301W15T06.R.id.approverRecieptView));%0A%09%7D%0A%09%09%0A%09%0A%09%0A
 %09//test for take
@@ -843,34 +843,24 @@
 d takePhoto(
-String tag
 ) %7B%0A%09%09assert
@@ -1089,18 +1089,8 @@
 oto(
-String tag
 ) %7B%0A

fix some bug