rt/aot-nb-test/src/test/java/org/apidesign/bck2brwsr/aot/junit/test/JUnitRunTest.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 20 Mar 2016 19:44:18 +0100
changeset 1904 ceb231ab85f6
permissions -rw-r--r--
Executing JUnit test inside of a Java plugin-less browser.
jaroslav@1904
     1
/**
jaroslav@1904
     2
 * Back 2 Browser Bytecode Translator
jaroslav@1904
     3
 * Copyright (C) 2012-2015 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jaroslav@1904
     4
 *
jaroslav@1904
     5
 * This program is free software: you can redistribute it and/or modify
jaroslav@1904
     6
 * it under the terms of the GNU General Public License as published by
jaroslav@1904
     7
 * the Free Software Foundation, version 2 of the License.
jaroslav@1904
     8
 *
jaroslav@1904
     9
 * This program is distributed in the hope that it will be useful,
jaroslav@1904
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jaroslav@1904
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
jaroslav@1904
    12
 * GNU General Public License for more details.
jaroslav@1904
    13
 *
jaroslav@1904
    14
 * You should have received a copy of the GNU General Public License
jaroslav@1904
    15
 * along with this program. Look for COPYING file in the top folder.
jaroslav@1904
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
jaroslav@1904
    17
 */
jaroslav@1904
    18
package org.apidesign.bck2brwsr.aot.junit.test;
jaroslav@1904
    19
jaroslav@1904
    20
import org.apidesign.bck2brwsr.aot.junit.RunTest;
jaroslav@1904
    21
import org.apidesign.bck2brwsr.vmtest.Compare;
jaroslav@1904
    22
import org.apidesign.bck2brwsr.vmtest.VMTest;
jaroslav@1904
    23
import org.testng.annotations.Factory;
jaroslav@1904
    24
jaroslav@1904
    25
/**
jaroslav@1904
    26
 *
jaroslav@1904
    27
 * @author Jaroslav Tulach
jaroslav@1904
    28
 */
jaroslav@1904
    29
public class JUnitRunTest {
jaroslav@1904
    30
    @Compare public String runTests() throws Exception {
jaroslav@1904
    31
        return RunTest.run();
jaroslav@1904
    32
    }
jaroslav@1904
    33
jaroslav@1904
    34
    @Factory public static Object[] create() {
jaroslav@1904
    35
        return VMTest.create(JUnitRunTest.class);
jaroslav@1904
    36
    }
jaroslav@1904
    37
}