Commit 09eb3a63 authored by Jalaluddin Shaikh's avatar Jalaluddin Shaikh

Added Log4J dependencies for testing.

parent 48808613
package com.example;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class JavaAzureAppConfigApplicationTest {
private static final Logger LOGGER = LoggerFactory.getLogger(JavaAzureAppConfigApplicationTest.class);
/**
* Unit test for simple App.
*/
public class JavaAzureAppConfigApplicationTest
{
/**
* Rigorous Test :-)
*/
@Test
public void shouldAnswerWithTrue()
{
assertTrue( true );
public void shouldAnswerWithTrue() {
LOGGER.info("Testing");
assertTrue(true);
}
}
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level [%logger{1}: %L] - %msg%n"/>
</Console>
</Appenders>
<Loggers>
<Logger name="com.example" level="debug" additivity="false">
<AppenderRef ref="Console"/>
</Logger>
<Root level="warn">
<AppenderRef ref="Console"/>
</Root>
</Loggers>
</Configuration>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment