rt/aot-nb-test/src/main/java/org/apidesign/bck2brwsr/aot/junit/TestedTest.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@1895
     1
/**
jaroslav@1895
     2
 * Back 2 Browser Bytecode Translator
jaroslav@1895
     3
 * Copyright (C) 2012-2015 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jaroslav@1895
     4
 *
jaroslav@1895
     5
 * This program is free software: you can redistribute it and/or modify
jaroslav@1895
     6
 * it under the terms of the GNU General Public License as published by
jaroslav@1895
     7
 * the Free Software Foundation, version 2 of the License.
jaroslav@1895
     8
 *
jaroslav@1895
     9
 * This program is distributed in the hope that it will be useful,
jaroslav@1895
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jaroslav@1895
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
jaroslav@1895
    12
 * GNU General Public License for more details.
jaroslav@1895
    13
 *
jaroslav@1895
    14
 * You should have received a copy of the GNU General Public License
jaroslav@1895
    15
 * along with this program. Look for COPYING file in the top folder.
jaroslav@1895
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
jaroslav@1895
    17
 */
jaroslav@1895
    18
package org.apidesign.bck2brwsr.aot.junit;
jaroslav@1895
    19
jaroslav@1895
    20
import org.junit.Test;
jaroslav@1895
    21
import static org.junit.Assert.fail;
jaroslav@1895
    22
jaroslav@1895
    23
public class TestedTest {
jaroslav@1895
    24
    @Test
jaroslav@1895
    25
    public void ok() {
jaroslav@1895
    26
    }
jaroslav@1895
    27
jaroslav@1895
    28
    @Test
jaroslav@1895
    29
    public void error() {
jaroslav@1895
    30
        fail("Failing");
jaroslav@1895
    31
    }
jaroslav@1895
    32
}