blob: b6cd7e4353052afb3aa15b7c7c2af87c5a06d178 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 org.apache.maven.plugins.dependency.utils;
import org.apache.maven.plugin.logging.Log;
import org.junit.Test;
public class TestSilentLog {
@Test
public void testLog() {
Log log = new DependencySilentLog();
String text = "Text";
Throwable e = new RuntimeException();
log.debug(text);
log.debug(text, e);
log.debug(e);
log.info(text);
log.info(text, e);
log.info(e);
log.warn(text);
log.warn(text, e);
log.warn(e);
log.error(text);
log.error(text, e);
log.error(e);
log.isDebugEnabled();
log.isErrorEnabled();
log.isWarnEnabled();
log.isInfoEnabled();
}
}