diff options
Diffstat (limited to 'lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/ArraySizeDetectorTest.java')
-rw-r--r-- | lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/ArraySizeDetectorTest.java | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/ArraySizeDetectorTest.java b/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/ArraySizeDetectorTest.java deleted file mode 100644 index 629f43c..0000000 --- a/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/ArraySizeDetectorTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2011 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.android.tools.lint.checks; - -import com.android.tools.lint.detector.api.Detector; - -@SuppressWarnings("javadoc") -public class ArraySizeDetectorTest extends AbstractCheckTest { - @Override - protected Detector getDetector() { - return new ArraySizeDetector(); - } - public void testArraySizes() throws Exception { - assertEquals( - "res/values/arrays.xml:3: Warning: Array security_questions has an inconsistent number of items (3 in values-nl-rNL/arrays.xml, 4 in values-cs/arrays.xml) [InconsistentArrays]\n" + - " <string-array name=\"security_questions\">\n" + - " ^\n" + - " res/values-cs/arrays.xml:3: Declaration with array size (4)\n" + - " res/values-es/strings.xml:12: Declaration with array size (4)\n" + - " res/values-nl-rNL/arrays.xml:3: Declaration with array size (3)\n" + - "res/values/arrays.xml:10: Warning: Array signal_strength has an inconsistent number of items (5 in values/arrays.xml, 6 in values-land/arrays.xml) [InconsistentArrays]\n" + - " <array name=\"signal_strength\">\n" + - " ^\n" + - " res/values-land/arrays.xml:2: Declaration with array size (6)\n" + - "0 errors, 2 warnings\n" + - "", - - lintProject( - "res/values/arrays.xml", - "res/values-cs/arrays.xml", - "res/values-land/arrays.xml", - "res/values-nl-rNL/arrays.xml", - "res/values-es/strings.xml")); - } - - public void testArraySizesSuppressed() throws Exception { - assertEquals( - "No warnings.", - - lintProject( - "res/values/arrays.xml", - "res/values-land/arrays_ignore.xml=>res/values-land/arrays.xml")); - } -} |