/*
* JBoss, Home of Professional Open Source
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.seam.mock;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeSuite;
/**
* Provides BaseSeamTest functionality for TestNG integration tests.
*
* @author Gavin King
* @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
* @author Mike Youngstrom
* @author <a href="http://community.jboss.org/people/jharting">Jozef Hartinger</a>
*/
public class SeamTest extends AbstractSeamTest
{
@BeforeMethod
@Override
public void begin()
{
super.begin();
}
@AfterMethod
@Override
public void end()
{
super.end();
}
/**
* Call this method within a test method to end the previous
* mock session and start another one.
*/
public void reset()
{
end();
begin();
}
@Override
@BeforeClass
public void setupClass() throws Exception
{
super.setupClass();
}
@Override
@AfterClass
public void cleanupClass() throws Exception
{
super.cleanupClass();
}
@Override
@BeforeSuite
public void startSeam() throws Exception
{
super.startSeam();
}
@Override
@AfterSuite
protected void stopSeam() throws Exception
{
super.stopSeam();
}
}