<?xml version="1.0" encoding="UTF-8"?>
<test-data>
    <test-code>
        <description><![CDATA[
method throws Exception
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
public class Foo {
 void foo() throws Exception {}
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
ok
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class Foo {
 void foo() {}
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
constructor throws Exception
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
public class Foo {
 Foo() throws Exception {}
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
skip junit setUp method
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
import junit.framework.*;
public class Foo {
 void setUp() throws Exception {}
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
skip junit tearDown method
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
import junit.framework.*;
public class Foo {
 void tearDown() throws Exception {}
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
Generics
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class Foo {
 public <T> Bar<T> foo() { /* blah */}
}
     ]]></code>
        <source-type>java 1.5</source-type>
    </test-code>
    <test-code>
        <description><![CDATA[
skip any method starting with 'test'
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class FooTest {
 void testFoo() throws Exception {}
}
     ]]></code>
    </test-code>
    <test-code>
        <description>#913 SignatureDeclareThrowsException is raised twice</description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
public class BugSignature {
  public void record() {
    SwingWorker worker = new SwingWorker() {
      protected String construct() throws Exception {
        //
      }
    };
  }
}
]]></code>
    </test-code>
</test-data>
