Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 17th, 2011  |  syntax: Java  |  size: 0.33 KB  |  views: 51  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. package org.references;
  2.  
  3. import org.testng.*;
  4. import org.testng.AssertJUnit.*;
  5. import org.testng.annotations.Test;
  6.  
  7.  
  8.  
  9. public class NewTest
  10. {
  11.        
  12.         @Test
  13.         public void f() {
  14.                 AssertJUnit.assertTrue( 1 == 2 );
  15.                 assertTrue( 1 == 2 );// compiler error: The method assertTrue(boolean) is undefined for the type NewTest
  16.         }
  17. }
clone this paste RAW Paste Data