<?xml version="1.0" encoding="UTF-8"?>
<test-data>
    <test-code>
        <description><![CDATA[
assert true a == b
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
import junit.framework.TestCase;
public class Foo extends TestCase {
 public void test1() {
  assertTrue(a==b);
 }
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
assert true a != b
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
import junit.framework.TestCase;
public class Foo extends TestCase {
 public void test1() {
  assertTrue(a!=b);
 }
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
assert false a == b
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
import junit.framework.TestCase;
public class Foo extends TestCase {
 public void test1() {
  assertFalse(a==b);
 }
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
assert false a != b
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
import junit.framework.TestCase;
public class Foo extends TestCase {
 public void test1() {
  assertFalse(a!=b);
 }
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
skip assertTrue(x == null), UseAssertNullInsteadOfAssertTrue will pick those up
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
import junit.framework.TestCase;
public class Foo extends TestCase {
 public void test1() {
  assertFalse(a == null);
 }
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
bug 1626715, the null check in the rule shouldn't match the null outside the assert method 
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
import junit.framework.TestCase;
public class Foo extends TestCase {
 public void test1() {
  assertFalse(a==b);
  null;
 }
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
assert true a == b BUT not a Junit test
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class Foo {
 public void test1() {
  assertTrue(a==b);
 }
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
JUnit 4 - assert true a == b
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
import org.junit.Test;
public class Foo {
 @Test
 public void test1() {
  assertTrue(a==b);
 }
}
     ]]></code>
    </test-code>
</test-data>
