blob: 32995b574e5953156239b0e987ebe08b5e8d6943 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001/*
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 android.core;
18
Jesse Wilson0102c212011-12-13 13:35:04 -050019import android.test.suitebuilder.annotation.MediumTest;
20import java.util.logging.Logger;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080021import junit.framework.TestCase;
22
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080023public class MiscRegressionTest extends TestCase {
24
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080025 // Regression test for #951285: Suitable LogHandler should be chosen
26 // depending on the environment.
27 @MediumTest
28 public void testAndroidLogHandler() throws Exception {
29 Logger.global.severe("This has logging Level.SEVERE, should become ERROR");
30 Logger.global.warning("This has logging Level.WARNING, should become WARN");
31 Logger.global.info("This has logging Level.INFO, should become INFO");
32 Logger.global.config("This has logging Level.CONFIG, should become DEBUG");
33 Logger.global.fine("This has logging Level.FINE, should become VERBOSE");
34 Logger.global.finer("This has logging Level.FINER, should become VERBOSE");
35 Logger.global.finest("This has logging Level.FINEST, should become VERBOSE");
36 }
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080037}