package com.a.eye.skywalking.api.conf;

import org.junit.Assert;
import org.junit.Test;

import static com.a.eye.skywalking.api.logging.LogLevel.INFO;

/**
 * @author wusheng
 */
public class SnifferConfigInitializerTest {

    @Test
    public void testInitialize(){
        SnifferConfigInitializer.initialize();

        Assert.assertEquals("crmApp", Config.Agent.APPLICATION_CODE);
        Assert.assertEquals("127.0.0.1:8080", Config.Collector.SERVERS);

        Assert.assertNotNull(Config.Buffer.SIZE);
        Assert.assertNotNull(Config.Logging.DIR);
        Assert.assertNotNull(Config.Logging.FILE_NAME);
        Assert.assertNotNull(Config.Logging.MAX_FILE_SIZE);
        Assert.assertNotNull(Config.Logging.FILE_NAME);
        Assert.assertEquals(INFO, Config.Logging.LEVEL);
    }
}

@@ -33,16 +33,45 @@
 .conf;%0A%0A
+import org.junit.AfterClass;%0A
 import o
@@ -167,20 +167,17 @@
 ogLevel.
-INFO
+*
 ;%0A%0A/**%0A 
@@ -813,11 +813,104 @@
 );%0A    %7D
+%0A%0A    @AfterClass%0A    public static void clear()%7B%0A        Config.Logging.LEVEL = DEBUG;%0A    %7D
 %0A%7D%0A

Fix ci fail.