To unsubscribe from this group, send email to testng-users...@googlegroups.com.
import java.util.*;import static org.testng.Assert.*;import org.testng.annotations.*;class SuperSampleTest {List<String> order = new ArrayList<>(2);@BeforeMethodpublic void superSetup() {System.out.println("running super");order.add("super");}}public class SampleTest extends SuperSampleTest {@BeforeMethodpublic void childSetup() {System.out.println("running child");order.add("child");}@Testpublic void verifyOrder() {if (order.get(0).equals("child"))fail("child before method ran before super!");}}
On Thursday, January 30, 2014 at 3:51 AM, Christian Mötzing wrote:
I can confirm your finding (by testing it myself). Is this a testng thing to only run annotated super methods with protected visibility? I can't find anything in the testng documentation.--
You received this message because you are subscribed to a topic in the Google Groups "testng-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/testng-users/fJd90c1RPWM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to testng-users...@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/groups/opt_out.