blob: 4c8dfabb831221d0da191ed3ed46ac22a893794a [file] [log] [blame]
package test.confordering.subpckg2;
import test.confordering.ConfigurationMethodOrderingTest;
import test.confordering.subpckg1.Parent;
/**
* This child overrides some of the @Configuration methods defined in Parent,
* but without redefining a @Configuration
*
* @author <a href='mailto:the_mindstorm[at]evolva[dot]ro'>Alexandru Popescu</a>
*/
public class SimpleOverriddingChild extends Parent {
/**
* @testng.before-class
*/
public void childBeforeTestClass() {
ConfigurationMethodOrderingTest.LOG.add("childBeforeTestClass");
}
public void inheritBeforeTestClass() {
ConfigurationMethodOrderingTest.LOG.add("childInheritBeforeTestClass");
}
/**
* @testng.before-method
*/
public void childBeforeTestMethod() {
ConfigurationMethodOrderingTest.LOG.add("childBeforeTestMethod");
}
public void inheritBeforeTestMethod() {
ConfigurationMethodOrderingTest.LOG.add("childInheritBeforeTestMethod");
}
/**
* @testng.test
*/
public void childTestMethod() {
ConfigurationMethodOrderingTest.LOG.add("childTestMethod");
}
/**
* @testng.after-method
*/
public void childAfterTestMethod() {
ConfigurationMethodOrderingTest.LOG.add("childAfterTestMethod");
}
public void inheritAfterTestMethod() {
ConfigurationMethodOrderingTest.LOG.add("childInheritAfterTestMethod");
}
/**
* @testng.after-class
*/
public void childAfterTestClass() {
ConfigurationMethodOrderingTest.LOG.add("childAfterTestClass");
}
public void inheritAfterTestClass() {
ConfigurationMethodOrderingTest.LOG.add("childInheritAfterTestClass");
}
}