public void testSwingExample1B() {
    TestParseHandler handler = TestUtil.parseClassHelper(TestSwingExample1B.class);
    ArrayList<ICheckThreadError> list = handler.getThreadPolicyErrors();

    // Verify that there is one thread policy error
    int actualValue = list.size();
    int expectedValue = 2;
    assertEquals(expectedValue, actualValue);
  }
  public void testSwingAPI() {
    TestParseHandler handler = TestUtil.parseClassHelper(TestSwingAPI.class);
    ArrayList<ICheckThreadError> list = handler.getThreadPolicyErrors();

    // Verify
    int actualValue = list.size();
    int expectedValue = 2;
    assertEquals(expectedValue, actualValue);
  }
  public void testBasicSwing() {

    TestParseHandler handler = TestUtil.parseClassHelper(TestBasicSwing.class);
    ArrayList<ICheckThreadError> list = handler.getThreadPolicyErrors();

    // Verify
    int actualValue = list.size();
    int expectedValue = 1;
    assertEquals(expectedValue, actualValue);

    // Verify that the failure occurred in a method called "mymethod"
    ICheckThreadError errorBean = list.get(0);
    String methodName = errorBean.getParentName();
    assertEquals("mymethod", methodName);
  }
 public void testBasicSwing5() {
   boolean expectedValue = true;
   boolean actualValue = TestUtil.verifyNoThreadPolicyErrors(TestBasicSwing5.class);
   assertEquals(expectedValue, actualValue);
 }