blob: 2523b0def778ef07fd7e0d1c06a60b1456555685 [file] [log] [blame]
Daisuke Miyakawaba2b21b2009-10-11 18:23:19 -07001/*
2 * Copyright (C) 2009 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.unit_tests.vcard;
18
19import android.content.ContentResolver;
20import android.database.CharArrayBuffer;
21import android.database.ContentObserver;
22import android.database.Cursor;
23import android.database.DataSetObserver;
24import android.net.Uri;
25import android.os.Bundle;
26
27import java.util.Map;
28
29public class MockCursor implements Cursor {
30 public int getColumnCount() {
31 throw new UnsupportedOperationException("unimplemented mock method");
32 }
33
34 public int getColumnIndex(String columnName) {
35 throw new UnsupportedOperationException("unimplemented mock method");
36 }
37
38 public int getColumnIndexOrThrow(String columnName) {
39 throw new UnsupportedOperationException("unimplemented mock method");
40 }
41
42 public String getColumnName(int columnIndex) {
43 throw new UnsupportedOperationException("unimplemented mock method");
44 }
45
46 public String[] getColumnNames() {
47 throw new UnsupportedOperationException("unimplemented mock method");
48 }
49
50 public int getCount() {
51 throw new UnsupportedOperationException("unimplemented mock method");
52 }
53
54 public boolean isNull(int columnIndex) {
55 throw new UnsupportedOperationException("unimplemented mock method");
56 }
57
58 public int getInt(int columnIndex) {
59 throw new UnsupportedOperationException("unimplemented mock method");
60 }
61
62 public long getLong(int columnIndex) {
63 throw new UnsupportedOperationException("unimplemented mock method");
64 }
65
66 public short getShort(int columnIndex) {
67 throw new UnsupportedOperationException("unimplemented mock method");
68 }
69
70 public float getFloat(int columnIndex) {
71 throw new UnsupportedOperationException("unimplemented mock method");
72 }
73
74 public double getDouble(int columnIndex) {
75 throw new UnsupportedOperationException("unimplemented mock method");
76 }
77
78 public byte[] getBlob(int columnIndex) {
79 throw new UnsupportedOperationException("unimplemented mock method");
80 }
81
82 public String getString(int columnIndex) {
83 throw new UnsupportedOperationException("unimplemented mock method");
84 }
85
86 public Bundle getExtras() {
87 throw new UnsupportedOperationException("unimplemented mock method");
88 }
89
90 public int getPosition() {
91 throw new UnsupportedOperationException("unimplemented mock method");
92 }
93
94 public boolean isAfterLast() {
95 throw new UnsupportedOperationException("unimplemented mock method");
96 }
97
98 public boolean isBeforeFirst() {
99 throw new UnsupportedOperationException("unimplemented mock method");
100 }
101
102 public boolean isFirst() {
103 throw new UnsupportedOperationException("unimplemented mock method");
104 }
105
106 public boolean isLast() {
107 throw new UnsupportedOperationException("unimplemented mock method");
108 }
109
110 public boolean move(int offset) {
111 throw new UnsupportedOperationException("unimplemented mock method");
112 }
113
114 public boolean moveToFirst() {
115 throw new UnsupportedOperationException("unimplemented mock method");
116 }
117
118 public boolean moveToLast() {
119 throw new UnsupportedOperationException("unimplemented mock method");
120 }
121
122 public boolean moveToNext() {
123 throw new UnsupportedOperationException("unimplemented mock method");
124 }
125
126 public boolean moveToPrevious() {
127 throw new UnsupportedOperationException("unimplemented mock method");
128 }
129
130 public boolean moveToPosition(int position) {
131 throw new UnsupportedOperationException("unimplemented mock method");
132 }
133
134 public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer) {
135 throw new UnsupportedOperationException("unimplemented mock method");
136 }
137
138 public void deactivate() {
139 throw new UnsupportedOperationException("unimplemented mock method");
140 }
141
142 public void close() {
143 throw new UnsupportedOperationException("unimplemented mock method");
144 }
145
146 public boolean isClosed() {
147 throw new UnsupportedOperationException("unimplemented mock method");
148 }
149
150 public boolean requery() {
151 throw new UnsupportedOperationException("unimplemented mock method");
152 }
153
154 public void registerContentObserver(ContentObserver observer) {
155 throw new UnsupportedOperationException("unimplemented mock method");
156 }
157
158 public void registerDataSetObserver(DataSetObserver observer) {
159 throw new UnsupportedOperationException("unimplemented mock method");
160 }
161
162 public Bundle respond(Bundle extras) {
163 throw new UnsupportedOperationException("unimplemented mock method");
164 }
165
166 public boolean getWantsAllOnMoveCalls() {
167 throw new UnsupportedOperationException("unimplemented mock method");
168 }
169
170 @SuppressWarnings("deprecation")
171 public boolean commitUpdates() {
172 throw new UnsupportedOperationException("unimplemented mock method");
173 }
174
175 @SuppressWarnings("deprecation")
176 public boolean commitUpdates(Map<? extends Long, ? extends Map<String, Object>> values) {
177 throw new UnsupportedOperationException("unimplemented mock method");
178 }
179
180 @SuppressWarnings("deprecation")
181 public boolean hasUpdates() {
182 throw new UnsupportedOperationException("unimplemented mock method");
183 }
184
185 @SuppressWarnings("deprecation")
186 public void setNotificationUri(ContentResolver cr, Uri uri) {
187 throw new UnsupportedOperationException("unimplemented mock method");
188 }
189
190 @SuppressWarnings("deprecation")
191 public boolean supportsUpdates() {
192 throw new UnsupportedOperationException("unimplemented mock method");
193 }
194
195 @SuppressWarnings("deprecation")
196 public boolean deleteRow() {
197 throw new UnsupportedOperationException("unimplemented mock method");
198 }
199
200 @SuppressWarnings("deprecation")
201 public void unregisterContentObserver(ContentObserver observer) {
202 throw new UnsupportedOperationException("unimplemented mock method");
203 }
204
205 @SuppressWarnings("deprecation")
206 public void unregisterDataSetObserver(DataSetObserver observer) {
207 throw new UnsupportedOperationException("unimplemented mock method");
208 }
209
210 @SuppressWarnings("deprecation")
211 public boolean updateBlob(int columnIndex, byte[] value) {
212 throw new UnsupportedOperationException("unimplemented mock method");
213 }
214
215 @SuppressWarnings("deprecation")
216 public boolean updateDouble(int columnIndex, double value) {
217 throw new UnsupportedOperationException("unimplemented mock method");
218 }
219
220 @SuppressWarnings("deprecation")
221 public boolean updateFloat(int columnIndex, float value) {
222 throw new UnsupportedOperationException("unimplemented mock method");
223 }
224
225 @SuppressWarnings("deprecation")
226 public boolean updateInt(int columnIndex, int value) {
227 throw new UnsupportedOperationException("unimplemented mock method");
228 }
229
230 @SuppressWarnings("deprecation")
231 public boolean updateLong(int columnIndex, long value) {
232 throw new UnsupportedOperationException("unimplemented mock method");
233 }
234
235 @SuppressWarnings("deprecation")
236 public boolean updateShort(int columnIndex, short value) {
237 throw new UnsupportedOperationException("unimplemented mock method");
238 }
239
240 @SuppressWarnings("deprecation")
241 public boolean updateString(int columnIndex, String value) {
242 throw new UnsupportedOperationException("unimplemented mock method");
243 }
244
245 @SuppressWarnings("deprecation")
246 public boolean updateToNull(int columnIndex) {
247 throw new UnsupportedOperationException("unimplemented mock method");
248 }
249
250 @SuppressWarnings("deprecation")
251 public void abortUpdates() {
252 throw new UnsupportedOperationException("unimplemented mock method");
253 }
254}