Add missing @Test annotations
This is a follow up CL to my previous CLs [1][2], which were already
auto-merged to master branch, where corresponding CTS package was
already converted to JUnit4 by [3].
Since now CTS test cases there require @Test annocation on master
branch, we have to manually add @Test every time new test case is
auto-merged to master.
[1]: I4538055eebaaf361335eee7df0852af69f5127d7
91a550c4590f0e1e9d0a3322d2cab61804cd3fd0
[2]: I202b27eae272a8a2d3432385d64fe975d1b5e280
25360e6028095a4666453a3a956dc3e61ea94fd2
[3]: I2b55c3814ac4bb1607eca7675bf7af75f56f57f1
e6ded0fa8cca4fc81feb23a50113848afe430698
Bug: 30695817
Bug: 30844323
Bug: 30920864
Change-Id: I227a7860ca087be95d0f6a7de37f75471310a4ad
diff --git a/tests/tests/view/src/android/view/inputmethod/cts/BaseInputConnectionTest.java b/tests/tests/view/src/android/view/inputmethod/cts/BaseInputConnectionTest.java
index ba239af..6d2e9ec 100644
--- a/tests/tests/view/src/android/view/inputmethod/cts/BaseInputConnectionTest.java
+++ b/tests/tests/view/src/android/view/inputmethod/cts/BaseInputConnectionTest.java
@@ -491,6 +491,7 @@
testDeleteSurroundingTextInCodePointsMain("01[><]456789", 1, 1, "0[><]56789");
}
+ @Test
public void testCloseConnection() {
final CharSequence source = "0123456789";
mConnection.commitText(source, source.length());
@@ -505,11 +506,13 @@
assertEquals(-1, BaseInputConnection.getComposingSpanEnd(text));
}
+ @Test
public void testGetHandler() {
// BaseInputConnection must not implement getHandler().
assertNull(mConnection.getHandler());
}
+ @Test
public void testCommitContent() {
final InputContentInfo inputContentInfo = new InputContentInfo(
Uri.parse("content://com.example/path"),
diff --git a/tests/tests/view/src/android/view/inputmethod/cts/InputContentInfoTest.java b/tests/tests/view/src/android/view/inputmethod/cts/InputContentInfoTest.java
index d8eb897..feb3167 100644
--- a/tests/tests/view/src/android/view/inputmethod/cts/InputContentInfoTest.java
+++ b/tests/tests/view/src/android/view/inputmethod/cts/InputContentInfoTest.java
@@ -57,6 +57,7 @@
assertEquals(info.describeContents(), targetInfo.describeContents());
}
+ @Test
public void testOptionalConstructorParam() {
InputContentInfo info = new InputContentInfo(
Uri.parse("content://com.example/path"),
@@ -161,6 +162,7 @@
}
}
+ @Test
public void testRequestAndReleasePermission() {
InputContentInfo info = new InputContentInfo(
Uri.parse("content://com.example/path"),