@@ -0,0 +1,2314 @@
+/*%0A * #%25L%0A * TestNG System.out printer%0A * %25%25%0A * Copyright (C) 2014 Mats Henrikson%0A * %25%25%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * %0A *      http://www.apache.org/licenses/LICENSE-2.0%0A * %0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A * #L%25%0A */%0Apackage com.little_fluffy_clouds.testng;%0A%0Aimport org.testng.IInvokedMethod;%0Aimport org.testng.IInvokedMethodListener;%0Aimport org.testng.ITestNGMethod;%0Aimport org.testng.ITestResult;%0A%0A/**%0A * A very simple class that simply prints the class and method names of TestNG tests being run,%0A * together with the elapsed time in milliseconds and the test outcome.%0A */%0Apublic class SystemOutTestPrinter implements IInvokedMethodListener %7B%0A%0A    @Override%0A    public void beforeInvocation(final IInvokedMethod method, final ITestResult testResult) %7B %7D%0A%0A    @Override%0A    public void afterInvocation(final IInvokedMethod m, final ITestResult r) %7B%0A        if (!m.isTestMethod()) return;%0A%0A        final ITestNGMethod method = m.getTestMethod();%0A        final String testName = method.getTestClass().getRealClass().getSimpleName();%0A        final ITestResult testResult = m.getTestResult();%0A        final long elapsed = testResult.getEndMillis() - testResult.getStartMillis();%0A        System.out.printf(%22%25s.%25s(): %25s, %25d millis%5Cn%22,%0A                testName, method.getMethodName(), Status.forCode(testResult.getStatus()), elapsed);%0A    %7D%0A%0A    /**%0A     * %7B@link org.testng.ITestResult%7D%0A     */%0A    @SuppressWarnings(%7B%22MagicNumber%22, %22UnusedDeclaration%22%7D)%0A    private enum Status %7B%0A        OK(1),%0A        FAIL(2),%0A        SKIP(3),%0A        OK_PCT_FAIL(4),%0A        STARTED(16),%0A        UNKNOWN(-1);%0A%0A        final int code;%0A%0A        Status(final int code) %7B this.code = code; %7D%0A%0A        static Status forCode(final int c) %7B%0A            for (final Status s : Status.values()) %7B%0A                if (s.code == c) return s;%0A            %7D%0A            return UNKNOWN;%0A        %7D%0A    %7D%0A%7D%0A

Add the actual java class.