Lines Matching defs:expected

38         String[] expected = { "foobar" };
40 bundle.putString(Notification.EXTRA_PEOPLE, expected[0]);
42 assertStringArrayEquals("string should be in result[0]", expected, result);
47 String[] expected = { "foobar" };
49 bundle.putCharArray(Notification.EXTRA_PEOPLE, expected[0].toCharArray());
51 assertStringArrayEquals("char[] should be in result[0]", expected, result);
56 String[] expected = { "foobar" };
58 bundle.putCharSequence(Notification.EXTRA_PEOPLE, new SpannableString(expected[0]));
60 assertStringArrayEquals("charSequence should be in result[0]", expected, result);
66 String[] expected = { "foobar" };
67 bundle.putStringArray(Notification.EXTRA_PEOPLE, expected);
69 assertStringArrayEquals("wrapped string should be in result[0]", expected, result);
75 String[] expected = { "foo", "bar", "baz" };
76 bundle.putStringArray(Notification.EXTRA_PEOPLE, expected);
78 assertStringArrayEquals("testStringArrayMultiple", expected, result);
84 String[] expected = { "foo", null, "baz" };
85 bundle.putStringArray(Notification.EXTRA_PEOPLE, expected);
87 assertStringArrayEquals("testStringArrayNulls", expected, result);
93 String[] expected = { "foo", "bar", "baz" };
94 CharSequence[] charSeqArray = new CharSequence[expected.length];
95 for (int i = 0; i < expected.length; i++) {
96 charSeqArray[i] = new SpannableString(expected[i]);
100 assertStringArrayEquals("testCharSequenceArrayMultiple", expected, result);
106 String[] expected = { "foo", "bar", "baz" };
107 CharSequence[] charSeqArray = new CharSequence[expected.length];
108 for (int i = 0; i < expected.length; i++) {
110 charSeqArray[i] = expected[i];
112 charSeqArray[i] = new SpannableString(expected[i]);
117 assertStringArrayEquals("testMixedCharSequenceArrayList", expected, result);
123 String[] expected = { "foo", null, "baz" };
124 final ArrayList<String> stringArrayList = new ArrayList<String>(expected.length);
125 for (int i = 0; i < expected.length; i++) {
126 stringArrayList.add(expected[i]);
130 assertStringArrayEquals("testStringArrayList", expected, result);
136 String[] expected = { "foo", "bar", "baz" };
138 new ArrayList<CharSequence>(expected.length);
139 for (int i = 0; i < expected.length; i++) {
140 stringArrayList.add(new SpannableString(expected[i]));
144 assertStringArrayEquals("testCharSequenceArrayList", expected, result);
147 private void assertStringArrayEquals(String message, String[] expected, String[] result) {
148 String expectedString = Arrays.toString(expected);