Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.arquillian.testng.container;
 
 
 
 {
   @org.testng.annotations.Test(expectedExceptions = IllegalArgumentException.class)
   {
      throw new IllegalArgumentException();
   }
   public void shouldProvidePassingTestToRunner() throws Exception
   {
      Assert.assertTrue(true);
   }
   public void shouldProvideFailingTestToRunner() throws Exception
   {
      Assert.fail("Failing by design");
   }
   @DataProvider(name = "xx")
   public static Object[][] getCurrentMethod(Method m)
   {
      return new Object[][]{new Object[]{m}};
   }
   @org.testng.annotations.Test(dataProvider = "xx")
   public void shouldBeAbleToUseOtherDataProviders(Method mthrows Exception
   {
      Assert.assertNotNull(m);
   }
New to GrepCode? Check out our FAQ X