package com.github.webdriverextensions.junitrunner;

import com.github.webdriverextensions.junitrunner.annotations.Firefox;
import com.github.webdriverextensions.junitrunner.annotations.IgnoreFirefox;
import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(WebDriverRunner.class)
@Firefox()
public class IgnoreBrowserTest {

    @Test
    @IgnoreFirefox
    public void ignoredTest() {
        assert false; // Fail test if test runs
    }
}
@@ -46,16 +46,111 @@
 unner;%0A%0A
+import static org.junit.Assert.fail;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0A
 import c
@@ -292,64 +292,8 @@
 fox;
-%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;
 %0A%0A@R
@@ -330,18 +330,16 @@
 @Firefox
-()
 %0Apublic 
@@ -430,55 +430,45 @@
 ) %7B%0A
-        assert false; // Fail test if test runs
+%09fail(%22This test should be ignored%22);
 %0A   

Use junit assert instead of java keyword