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 android.core; 18 19import android.test.suitebuilder.annotation.MediumTest; 20import java.util.logging.Logger; 21import junit.framework.TestCase; 22 23public class MiscRegressionTest extends TestCase { 24 25 // 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 } 37} 38