package com.actionbarsherlock.tests.runner;

import android.test.suitebuilder.annotation.Smoke;
import com.actionbarsherlock.tests.app.Issue0031;

public class TestIssue0031 extends BaseTestCase<Issue0031> {
	public TestIssue0031() {
		super(Issue0031.class);
	}
	
	@Smoke
	public void testMenuItemResourceTitle() {
		String expected = getActivity().getResourceTitle();
		CharSequence actual = getActivity().getResourceMenuItem().getTitle();
		assertNotNull(actual);
		assertEquals(expected, actual);
	}
	
	@Smoke
	public void testMenuItemStringTitle() {
		String expected = getActivity().getStringTitle();
		CharSequence actual = getActivity().getStringMenuItem().getTitle();
		assertNotNull(actual);
		assertEquals(expected, actual);
	}
}

@@ -40,16 +40,58 @@
 ner;%0D%0A%0D%0A
+import android.support.v4.view.MenuItem;%0D%0A
 import a
@@ -134,16 +134,16 @@
 Smoke;%0D%0A
-
 import c
@@ -420,35 +420,41 @@
 e();%0D%0A%09%09
-CharSequence actual
+MenuItem resourceMenuItem
  = getAc
@@ -475,32 +475,111 @@
 sourceMenuItem()
+;%0D%0A%09%09assertNotNull(resourceMenuItem);%0D%0A%09%09CharSequence actual = resourceMenuItem
 .getTitle();%0D%0A%09%09
@@ -750,35 +750,39 @@
 e();%0D%0A%09%09
-CharSequence actual
+MenuItem stringMenuItem
  = getAc
@@ -809,16 +809,91 @@
 nuItem()
+;%0D%0A%09%09assertNotNull(stringMenuItem);%0D%0A%09%09CharSequence actual = stringMenuItem
 .getTitl

Fix possible NPE in issue 31 test.