1/*
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.exchange;
18
19import com.android.exchange.adapter.Tags;
20
21import android.test.AndroidTestCase;
22import android.test.suitebuilder.annotation.SmallTest;
23
24import java.util.HashMap;
25@SmallTest
26public class TagsTests extends AndroidTestCase {
27
28    // Make sure there are no duplicates in the tags table
29    // This test is no longer required - tags can be duplicated
30    public void disable_testNoDuplicates() {
31        String[][] allTags = Tags.pages;
32        HashMap<String, Boolean> map = new HashMap<String, Boolean>();
33        for (String[] page: allTags) {
34            for (String tag: page) {
35                assertTrue(tag, !map.containsKey(tag));
36                map.put(tag, true);
37            }
38        }
39    }
40}
41