Removing accidentally commited debris
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 20 Mar 2016 07:01:40 +0100
changeset 1897cb637833bfb3
parent 1896 9984d9a62bc0
child 1898 cf6d5d357696
Removing accidentally commited debris
rt/aot-nb-test/pom.xml
rt/aot-nb-test/src/main/java/org/apidesign/bck2brwsr/aot/junit/RunTest.java
rt/aot-nb-test/src/main/java/org/apidesign/bck2brwsr/aot/junit/TestedTest.java
rt/aot-nb-test/src/test/java/org/apidesign/bck2brwsr/aot/junit/test/JUnitRunTest.java
     1.1 --- a/rt/aot-nb-test/pom.xml	Sat Mar 19 13:15:11 2016 +0100
     1.2 +++ b/rt/aot-nb-test/pom.xml	Sun Mar 20 07:01:40 2016 +0100
     1.3 @@ -53,12 +53,6 @@
     1.4              <version>${project.version}</version>
     1.5              <scope>test</scope>
     1.6          </dependency>
     1.7 -        <dependency>
     1.8 -            <groupId>junit</groupId>
     1.9 -            <artifactId>junit</artifactId>
    1.10 -            <version>4.12</version>
    1.11 -            <type>jar</type>
    1.12 -        </dependency>
    1.13      </dependencies>
    1.14      <build>
    1.15          <plugins>
     2.1 --- a/rt/aot-nb-test/src/main/java/org/apidesign/bck2brwsr/aot/junit/RunTest.java	Sat Mar 19 13:15:11 2016 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,67 +0,0 @@
     2.4 -/**
     2.5 - * Back 2 Browser Bytecode Translator
     2.6 - * Copyright (C) 2012-2015 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     2.7 - *
     2.8 - * This program is free software: you can redistribute it and/or modify
     2.9 - * it under the terms of the GNU General Public License as published by
    2.10 - * the Free Software Foundation, version 2 of the License.
    2.11 - *
    2.12 - * This program is distributed in the hope that it will be useful,
    2.13 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
    2.14 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    2.15 - * GNU General Public License for more details.
    2.16 - *
    2.17 - * You should have received a copy of the GNU General Public License
    2.18 - * along with this program. Look for COPYING file in the top folder.
    2.19 - * If not, see http://opensource.org/licenses/GPL-2.0.
    2.20 - */
    2.21 -package org.apidesign.bck2brwsr.aot.junit;
    2.22 -
    2.23 -import java.io.PrintStream;
    2.24 -import java.io.UnsupportedEncodingException;
    2.25 -import junit.framework.AssertionFailedError;
    2.26 -import junit.framework.JUnit4TestAdapter;
    2.27 -import junit.framework.Test;
    2.28 -import junit.framework.TestListener;
    2.29 -import junit.framework.TestResult;
    2.30 -import junit.textui.ResultPrinter;
    2.31 -
    2.32 -public class RunTest extends ResultPrinter {
    2.33 -    public static void main(String... args) throws UnsupportedEncodingException {
    2.34 -        System.err.println(run());
    2.35 -    }
    2.36 -
    2.37 -    public static String run() throws UnsupportedEncodingException {
    2.38 -        TestResult tr = new TestResult();
    2.39 -        class L implements TestListener {
    2.40 -            StringBuilder sb = new StringBuilder();
    2.41 -
    2.42 -            @Override
    2.43 -            public void addError(Test test, Throwable e) {
    2.44 -                sb.append(test.toString()).append("\n");
    2.45 -            }
    2.46 -
    2.47 -            @Override
    2.48 -            public void addFailure(Test test, AssertionFailedError e) {
    2.49 -                sb.append(test.toString()).append("\n");;
    2.50 -            }
    2.51 -
    2.52 -            @Override
    2.53 -            public void endTest(Test test) {
    2.54 -            }
    2.55 -
    2.56 -            @Override
    2.57 -            public void startTest(Test test) {
    2.58 -            }
    2.59 -        }
    2.60 -        L listener = new L();
    2.61 -        tr.addListener(listener);
    2.62 -        JUnit4TestAdapter suite = new JUnit4TestAdapter(TestedTest.class);
    2.63 -        suite.run(tr);
    2.64 -        return listener.sb.toString();
    2.65 -    }
    2.66 -
    2.67 -    RunTest(PrintStream writer) {
    2.68 -        super(writer);
    2.69 -    }
    2.70 -}
     3.1 --- a/rt/aot-nb-test/src/main/java/org/apidesign/bck2brwsr/aot/junit/TestedTest.java	Sat Mar 19 13:15:11 2016 +0100
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,32 +0,0 @@
     3.4 -/**
     3.5 - * Back 2 Browser Bytecode Translator
     3.6 - * Copyright (C) 2012-2015 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     3.7 - *
     3.8 - * This program is free software: you can redistribute it and/or modify
     3.9 - * it under the terms of the GNU General Public License as published by
    3.10 - * the Free Software Foundation, version 2 of the License.
    3.11 - *
    3.12 - * This program is distributed in the hope that it will be useful,
    3.13 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
    3.14 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    3.15 - * GNU General Public License for more details.
    3.16 - *
    3.17 - * You should have received a copy of the GNU General Public License
    3.18 - * along with this program. Look for COPYING file in the top folder.
    3.19 - * If not, see http://opensource.org/licenses/GPL-2.0.
    3.20 - */
    3.21 -package org.apidesign.bck2brwsr.aot.junit;
    3.22 -
    3.23 -import org.junit.Test;
    3.24 -import static org.junit.Assert.fail;
    3.25 -
    3.26 -public class TestedTest {
    3.27 -    @Test
    3.28 -    public void ok() {
    3.29 -    }
    3.30 -
    3.31 -    @Test
    3.32 -    public void error() {
    3.33 -        fail("Failing");
    3.34 -    }
    3.35 -}
     4.1 --- a/rt/aot-nb-test/src/test/java/org/apidesign/bck2brwsr/aot/junit/test/JUnitRunTest.java	Sat Mar 19 13:15:11 2016 +0100
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,37 +0,0 @@
     4.4 -/**
     4.5 - * Back 2 Browser Bytecode Translator
     4.6 - * Copyright (C) 2012-2015 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     4.7 - *
     4.8 - * This program is free software: you can redistribute it and/or modify
     4.9 - * it under the terms of the GNU General Public License as published by
    4.10 - * the Free Software Foundation, version 2 of the License.
    4.11 - *
    4.12 - * This program is distributed in the hope that it will be useful,
    4.13 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
    4.14 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    4.15 - * GNU General Public License for more details.
    4.16 - *
    4.17 - * You should have received a copy of the GNU General Public License
    4.18 - * along with this program. Look for COPYING file in the top folder.
    4.19 - * If not, see http://opensource.org/licenses/GPL-2.0.
    4.20 - */
    4.21 -package org.apidesign.bck2brwsr.aot.junit.test;
    4.22 -
    4.23 -import org.apidesign.bck2brwsr.aot.junit.RunTest;
    4.24 -import org.apidesign.bck2brwsr.vmtest.Compare;
    4.25 -import org.apidesign.bck2brwsr.vmtest.VMTest;
    4.26 -import org.testng.annotations.Factory;
    4.27 -
    4.28 -/**
    4.29 - *
    4.30 - * @author Jaroslav Tulach
    4.31 - */
    4.32 -public class JUnitRunTest {
    4.33 -    @Compare public String runTests() throws Exception {
    4.34 -        return RunTest.run();
    4.35 -    }
    4.36 -
    4.37 -    @Factory public static Object[] create() {
    4.38 -        return VMTest.create(JUnitRunTest.class);
    4.39 -    }
    4.40 -}