@@ -0,0 +1,1237 @@
+package otcoteam.tahiti.performance.reporter;%0A%0Aimport ch.qos.logback.classic.Level;%0Aimport ch.qos.logback.classic.Logger;%0Aimport ch.qos.logback.classic.LoggerContext;%0Aimport ch.qos.logback.classic.encoder.PatternLayoutEncoder;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.*;%0A%0A/**%0A * jdquanyi%0A * Created by Nick on 2016/4/10.%0A */%0Apublic class LogReporterTest %7B%0A%0A    LogReporter reporter = new LogReporter() %7B%0A        @Override%0A        public Logger getLogger() %7B%0A            return null;%0A        %7D%0A%0A        @Override%0A        public PatternLayoutEncoder createEncoder() %7B%0A            return super.createEncoder();%0A        %7D%0A%0A        @Override%0A        public Logger createLogger() %7B%0A            return super.createLogger();%0A        %7D%0A    %7D;%0A%0A    @Test%0A    public void getLogger() throws Exception %7B%0A        assertNull(reporter.getLogger());%0A    %7D%0A%0A    @Test%0A    public void createEncoder() throws Exception %7B%0A        PatternLayoutEncoder encoder = reporter.createEncoder();%0A        assertNotNull(encoder.getContext());%0A        assertEquals(%22%25d %25-5level - %25msg%25n%22,encoder.getPattern());%0A    %7D%0A%0A    @Test%0A    public void createLogger() throws Exception %7B%0A        assertEquals(Level.ALL, reporter.createLogger().getLevel());%0A    %7D%0A%0A%7D

test for LogReporter