Home | History | Annotate | Download | only in expectedexceptions
      1 package test.expectedexceptions;
      2 
      3 import org.testng.annotations.Test;
      4 
      5 import test.BaseTest;
      6 
      7 public class ExpectedExceptionsTest extends BaseTest {
      8 
      9   @Test
     10   public void expectedExceptionsDeprecatedSyntax() {
     11     runTest("test.expectedexceptions.SampleExceptions",
     12         new String[] { "shouldPass" },
     13         new String[] { "shouldFail1", "shouldFail2", "shouldFail3" },
     14         new String[] {});
     15   }
     16 
     17   @Test
     18   public void expectedExceptions() {
     19     runTest("test.expectedexceptions.SampleExceptions2",
     20         new String[] { "shouldPass", "shouldPass2", "shouldPass3", "shouldPass4" },
     21         new String[] { "shouldFail1", "shouldFail2", "shouldFail3", "shouldFail4" },
     22         new String[] {});
     23   }
     24 
     25 }
     26 
     27 
     28