@@ -0,0 +1,1967 @@
+package net.kencochrane.raven.log4j;%0A%0Aimport mockit.Expectations;%0Aimport mockit.Injectable;%0Aimport mockit.Mocked;%0Aimport mockit.Verifications;%0Aimport net.kencochrane.raven.Raven;%0Aimport net.kencochrane.raven.event.Event;%0Aimport net.kencochrane.raven.event.EventBuilder;%0Aimport org.apache.log4j.Level;%0Aimport org.apache.log4j.Logger;%0Aimport org.apache.log4j.spi.LoggingEvent;%0Aimport org.hamcrest.Matchers;%0Aimport org.testng.annotations.BeforeMethod;%0Aimport org.testng.annotations.Test;%0A%0Aimport java.util.Date;%0Aimport java.util.UUID;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.is;%0A%0Apublic class SentryAppenderNGTest %7B%0A    private SentryAppender sentryAppender;%0A    @Mocked%0A    private Raven mockRaven = null;%0A%0A    @BeforeMethod%0A    public void setUp() %7B%0A        sentryAppender = new SentryAppender(mockRaven);%0A    %7D%0A%0A    @Test%0A    public void testSimpleMesageLogging(@Injectable final Logger logger) throws Exception %7B%0A        final String loggerName = UUID.randomUUID().toString();%0A        final String message = UUID.randomUUID().toString();%0A        final String threadName = UUID.randomUUID().toString();%0A        final Date date = new Date(1373883196416L);%0A        new Expectations() %7B%7B%0A                logger.getName();%0A                result = loggerName;%0A            %7D%7D;%0A%0A        sentryAppender.append(new LoggingEvent(null, logger, date.getTime(), Level.INFO, message, threadName,%0A                null, null, null, null));%0A%0A        new Verifications() %7B%7B%0A            Event event;%0A            mockRaven.runBuilderHelpers(withAny(new EventBuilder()));%0A            mockRaven.sendEvent(event = withCapture());%0A            assertThat(event.getMessage(), is(message));%0A            assertThat(event.getLogger(), is(loggerName));%0A            assertThat(event.getExtra(), Matchers.%3CString, Object%3EhasEntry(SentryAppender.THREAD_NAME, threadName));%0A            assertThat(event.getTimestamp(), is(date));%0A        %7D%7D;%0A    %7D%0A%7D%0A

Add new tests using testNG in raven-log4j