This content has been marked as final.
Show 3 replies
-
1. Re: Seam Integration Testing with TestNG Groups
pmuir May 9, 2008 11:17 AM (in response to dhinojosa)You need to use the test structure from 2.1 series (that isn't it).
-
2. Re: Seam Integration Testing with TestNG Groups
bgroeneveld May 14, 2009 2:24 AM (in response to dhinojosa)User (me) now reports that to use TestNG groups in Seam 2.1 you need to override SeamTest with:
public class SomeBaseTest extends SeamTest { @Override @BeforeClass(alwaysRun=true) public void setupClass() throws Exception { super.setupClass(); } @Override @AfterClass(alwaysRun=true) public void cleanupClass() throws Exception { super.cleanupClass(); } @Override @BeforeSuite(alwaysRun=true) @BeforeGroups public void startSeam() throws Exception { super.startSeam(); } @Override @AfterSuite(alwaysRun=true) @AfterGroups(alwaysRun=true) protected void stopSeam() throws Exception { super.stopSeam(); } @BeforeMethod(alwaysRun=true) @Override public void begin() { super.begin(); } @AfterMethod(alwaysRun=true) @Override public void end() { super.end(); }
-
3. Re: Seam Integration Testing with TestNG Groups
bgroeneveld Jun 3, 2009 12:33 AM (in response to dhinojosa)Woops, there's something lost above. The startSeam @Override should be:
@BeforeSuite(alwaysRun=true) @BeforeGroups(alwaysRun=true) public void startSeam() throws Exception { super.startSeam(); }