1/*
2 * Copyright (C) 2008 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 org.apache.harmony.luni.tests.java.util;
18
19import dalvik.annotation.TestTargets;
20import dalvik.annotation.TestLevel;
21import dalvik.annotation.TestTargetNew;
22import dalvik.annotation.TestTargetClass;
23
24import junit.framework.TestCase;
25
26import java.util.Date;
27import java.util.Dictionary;
28import java.util.Enumeration;
29
30@TestTargetClass(Dictionary.class)
31public class DictionaryTest extends TestCase {
32
33    class Mock_Dictionary extends Dictionary {
34
35        @Override
36        public Enumeration elements() {
37            return null;
38        }
39
40        @Override
41        public Object get(Object arg0) {
42            return null;
43        }
44
45        @Override
46        public boolean isEmpty() {
47            return false;
48        }
49
50        @Override
51        public Enumeration keys() {
52            return null;
53        }
54
55        @Override
56        public Object put(Object arg0, Object arg1) {
57            return null;
58        }
59
60        @Override
61        public Object remove(Object arg0) {
62            return null;
63        }
64
65        @Override
66        public int size() {
67            return 0;
68        }
69    }
70
71    @TestTargetNew(
72        level = TestLevel.COMPLETE,
73        notes = "",
74        method = "Dictionary",
75        args = {}
76    )
77    public void testDictionary() {
78        Dictionary md = new Mock_Dictionary();
79        assertNotNull(md);
80    }
81
82}
83