Home | History | Annotate | Download | only in java
      1 
      2 /*
      3  * Created on 12-Sep-2006 by micheb10
      4  * it is at the wrong location, but it's easier to leave it here.
      5  * Also, do not change the line numbers since the test will make sure
      6  * that the tags are generated in hardcoded line numbers
      7  */
      8 
      9 /**
     10  * Sample file for the Javadocv annotations to Java 5 annotations converter for the default package
     11  * @author micheb10 12-Sep-2006
     12  *
     13  */
     14 public class ConverterSample4 {
     15 	/**
     16 	 * This comment line should be preserved
     17 	 * @testng.before-suite alwaysRun = "true"
     18 	 */
     19 	public void beforeSuiteAlwaysRun() {
     20 		// We are just checking appropriate annotations are added so we don't care about body
     21 	}
     22 
     23 	/**
     24 	 * @testng.test
     25 	 */
     26 	public void plainTest() {
     27 		// Empty body
     28 	}
     29 
     30 	/**
     31 	 * @testng.test
     32 	 * @testng.expected-exceptions
     33 	 * value = "java.lang.NullPointerException java.lang.NumberFormatException"
     34 	 */
     35 	public void expectedExceptions() {
     36 		// Empty body
     37 	}
     38 
     39 	/**
     40 	 * @testng.test groups = "groupA groupB"
     41 	 */
     42 	public void testGroups() {
     43 		// Empty body
     44 	}
     45 
     46 	/**
     47 	 * @testng.after-method
     48 	 */
     49 	public void afterMethod() {
     50 		// Empty body
     51 	}
     52 
     53 	/**
     54 	 * This key should be preserved
     55 	 * @author The author is a standard tag and should not be touched
     56 	 * @testng.test groups = "groupA"
     57 	 * 		dependsOnMethods = "expectedExceptions" timeOut="3000" unrecognised="futureProof"
     58 	 * @version another standard tag should not be changed
     59 	 * @testng.expected-exceptions
     60 	 * value = "java.lang.NullPointerException java.lang.NumberFormatException"
     61 	 *
     62 	 */
     63 	public void testEverything() {
     64 
     65 	}
     66 
     67 	/**
     68 	 * @testng.data-provider name="test1"
     69 	 */
     70 	public Object[][] dataProvider() {
     71 		return null;
     72 	}
     73 
     74 	/**
     75 	 * @testng.factory
     76 	 */
     77 	@SuppressWarnings({"unchecked", "deprecation"})
     78 	public Object[] factory() {
     79 		return null;
     80 	}
     81 
     82 }
     83