/external/testng/src/main/java/org/testng/xml/ |
D | XmlTest.java | 28 private XmlSuite m_suite; 30 private Integer m_verbose = XmlSuite.DEFAULT_VERBOSE; 31 private Boolean m_isJUnit = XmlSuite.DEFAULT_JUNIT; 41 private XmlSuite.ParallelMode m_parallel; 48 private Boolean m_skipFailedInvocationCounts = XmlSuite.DEFAULT_SKIP_FAILED_INVOCATION_COUNTS; 51 private String m_preserveOrder = XmlSuite.DEFAULT_PRESERVE_ORDER; 67 public XmlTest(XmlSuite suite, int index) { in XmlTest() 71 public XmlTest(XmlSuite suite) { in XmlTest() 75 private void init(XmlSuite suite, int index) { in init() 119 public XmlSuite getSuite() { in getSuite() [all …]
|
D | Parser.java | 140 public Collection<XmlSuite> parse() in parse() 147 XmlSuite resultSuite = null; in parse() 161 Map<String, XmlSuite> childToParentMap = Maps.newHashMap(); in parse() 171 IFileParser<XmlSuite> fileParser = getParser(currentFile); in parse() 172 XmlSuite currentXmlSuite = fileParser.parse(currentFile, inputStream, m_loadClasses); in parse() 177 XmlSuite parentSuite = childToParentMap.get(currentFile); in parse() 221 List<XmlSuite> resultList = Lists.newArrayList(); in parse() 234 public List<XmlSuite> parseToList() in parseToList() 237 List<XmlSuite> result = Lists.newArrayList(); in parseToList() 238 Collection<XmlSuite> suites = parse(); in parseToList() [all …]
|
D | XmlPackage.java | 148 return XmlSuite.f(); in equals() 150 return XmlSuite.f(); in equals() 154 return XmlSuite.f(); in equals() 156 return XmlSuite.f(); in equals() 159 return XmlSuite.f(); in equals() 161 return XmlSuite.f(); in equals() 164 return XmlSuite.f(); in equals() 166 return XmlSuite.f(); in equals() 169 return XmlSuite.f(); in equals() 171 return XmlSuite.f(); in equals()
|
D | XmlMethodSelector.java | 138 return XmlSuite.f(); in equals() 140 return XmlSuite.f(); in equals() 144 return XmlSuite.f(); in equals() 146 return XmlSuite.f(); in equals() 149 return XmlSuite.f(); in equals() 151 return XmlSuite.f(); in equals() 154 return XmlSuite.f(); in equals() 156 return XmlSuite.f(); in equals() 158 return XmlSuite.f(); in equals()
|
D | XmlInclude.java | 99 return XmlSuite.f(); in equals() 101 return XmlSuite.f(); in equals() 107 return XmlSuite.f(); in equals() 109 return XmlSuite.f(); in equals() 112 return XmlSuite.f(); in equals() 114 return XmlSuite.f(); in equals() 117 return XmlSuite.f(); in equals() 120 return XmlSuite.f(); in equals()
|
D | XmlClass.java | 252 return XmlSuite.f(); in equals() 254 return XmlSuite.f(); in equals() 257 return XmlSuite.f(); in equals() 259 return XmlSuite.f(); in equals() 263 return XmlSuite.f(); in equals() 265 return XmlSuite.f(); in equals() 270 return XmlSuite.f(); in equals() 272 return XmlSuite.f(); in equals()
|
/external/testng/src/test/java/test/thread/ |
D | ParallelTestTest.java | 8 import org.testng.xml.XmlSuite; 22 verifyExpected(XmlSuite.ParallelMode.NONE, 1); in verifyParallelNone() 27 verifyExpected(XmlSuite.ParallelMode.TESTS, 2); in verifyParallelTests() 32 verifyExpected(XmlSuite.ParallelMode.METHODS, 4); in verifyParallelMethods() 37 verifyExpected(XmlSuite.ParallelMode.CLASSES, 2); in verifyParallelClasses() 42 … verifyExpected(XmlSuite.ParallelMode.INSTANCES, 2, ParallelWithFactorySampleTest.class.getName()); in verifyParallelClassesWithFactory() 47 verifyExpected(XmlSuite.ParallelMode.NONE, 1, ParallelWithFactorySampleTest.class.getName()); in verifyNonParallelClassesWithFactory() 53 private void createTest(XmlSuite xmlSuite, String className) { in createTest() 60 private void verifyExpected(XmlSuite.ParallelMode parallelMode, int expectedThreadCount) { in verifyExpected() 64 private void verifyExpected(XmlSuite.ParallelMode parallelMode, int expectedThreadCount, in verifyExpected() [all …]
|
D | FactoryTest.java | 7 import org.testng.xml.XmlSuite; 26 runTest(XmlSuite.ParallelMode.METHODS, 2); in verifyFactoryParallelMethods() 31 runTest(XmlSuite.ParallelMode.TESTS, 1); in verifyFactoryParallelTests() 34 private void runTest(XmlSuite.ParallelMode parallelMode, int expectedThreadIdCount) { in runTest()
|
/external/testng/src/test/java/test/listeners/ |
D | AlterSuiteListenerTest.java | 7 import org.testng.xml.XmlSuite; 20 …XmlSuite suite = runTest(AlterSuiteListener1SampleTest.class, AlterSuiteNameListener.class.getName… in executionListenerWithXml() 26 … XmlSuite suite = runTest(AlterSuiteListener1SampleTest.class, null/*Donot add the listener*/); in executionListenerWithoutListener() 32 …XmlSuite suite = runTest(AlterSuiteListener1SampleTest.class, AlterXmlTestsInSuiteListener.class.g… in executionListenerWithXml2() 37 private XmlSuite runTest(Class<?> listenerClass, String listenerName) { in runTest() 38 XmlSuite s = createXmlSuite(ALTER_SUITE_LISTENER); in runTest() 61 public void alter(List<XmlSuite> suites) { in alter() 62 XmlSuite suite = suites.get(0); in alter() 71 public void alter(List<XmlSuite> suites) { in alter() 72 XmlSuite suite = suites.get(0); in alter()
|
/external/testng/src/main/java/org/testng/internal/ |
D | Yaml.java | 6 import org.testng.xml.XmlSuite; 28 public static XmlSuite parse(String filePath, InputStream is) in parse() 30 Constructor constructor = new TestNGConstructor(XmlSuite.class); in parse() 32 TypeDescription suiteDescription = new TypeDescription(XmlSuite.class); in parse() 50 XmlSuite result = (XmlSuite) y.load(is); in parse() 82 public static StringBuilder toYaml(XmlSuite suite) { in toYaml() 86 maybeAdd(result, "junit", suite.isJUnit(), XmlSuite.DEFAULT_JUNIT); in toYaml() 87 maybeAdd(result, "verbose", suite.getVerbose(), XmlSuite.DEFAULT_VERBOSE); in toYaml() 88 maybeAdd(result, "threadCount", suite.getThreadCount(), XmlSuite.DEFAULT_THREAD_COUNT); in toYaml() 90 XmlSuite.DEFAULT_DATA_PROVIDER_THREAD_COUNT); in toYaml() [all …]
|
D | OverrideProcessor.java | 4 import org.testng.xml.XmlSuite; 26 public Collection<XmlSuite> process(Collection<XmlSuite> suites) { in process() 27 for (XmlSuite s : suites) { in process()
|
/external/testng/src/test/java/test/ |
D | TestHelper.java | 6 import org.testng.xml.XmlSuite; 16 public static XmlSuite createSuite(String cls, String suiteName) { in createSuite() 20 public static XmlSuite createSuite(Class<?> cls, String suiteName, String testName) { in createSuite() 24 private static XmlSuite createSuite(String cls, String suiteName, String testName) { in createSuite() 25 XmlSuite result = new XmlSuite(); in createSuite() 45 public static TestNG createTestNG(XmlSuite suite) { in createTestNG() 49 public static TestNG createTestNG(XmlSuite suite, String outputDir) { in createTestNG() 52 List<XmlSuite> suites = Lists.newArrayList(); in createTestNG()
|
D | SimpleBaseTest.java | 11 import org.testng.xml.XmlSuite; 36 protected TestNG create(XmlSuite... suites) { in create() 43 XmlSuite suite = createXmlSuite(suiteName); in createTests() 52 protected XmlSuite createXmlSuite(String name) { in createXmlSuite() 53 XmlSuite result = new XmlSuite(); in createXmlSuite() 58 protected XmlTest createXmlTest(XmlSuite suite, String name, Class clazz, Class... classes) { in createXmlTest() 72 protected XmlTest createXmlTest(XmlSuite suite, String name, String... classes) { in createXmlTest()
|
/external/testng/src/test/java/test/multiplelisteners/ |
D | TestMaker.java | 8 import org.testng.xml.XmlSuite; 23 final List<XmlSuite> suites = createSuites(); in run() 35 private List<XmlSuite> createSuites() in createSuites() 37 final List<XmlSuite> ret = Lists.newArrayList(); in createSuites() 45 private XmlSuite createSuite(final int nr) in createSuite() 47 final XmlSuite suite = new XmlSuite(); in createSuite()
|
/external/testng/src/main/java/org/testng/xml/dom/ |
D | DomXmlParser.java | 5 import org.testng.xml.XmlSuite; 17 public class DomXmlParser extends XMLParser<XmlSuite> implements ISuiteParser { 19 public XmlSuite parse(String currentFile, InputStream inputStream, boolean loadClasses) { in parse() 20 XmlSuite result = null; in parse() 35 public XmlSuite parse2(String currentFile, InputStream inputStream, in parse2() 44 XmlSuite result = new XmlSuite(); in parse2()
|
/external/testng/src/main/java/org/testng/ |
D | TestNG.java | 60 import org.testng.xml.XmlSuite; 126 protected List<XmlSuite> m_suites = Lists.newArrayList(); 127 private List<XmlSuite> m_cmdlineSuites; 133 private Boolean m_isJUnit = XmlSuite.DEFAULT_JUNIT; 134 private Boolean m_isMixed = XmlSuite.DEFAULT_MIXED; 161 private XmlSuite.ParallelMode m_parallelMode = XmlSuite.ParallelMode.FALSE; 281 for (XmlSuite s: m_suites) { in initializeSuitesAndJarFile() 284 …Collection<XmlSuite> childSuites = getParser(m_pathUtils.getSuiteNormalizedPath(s, suiteFile)).par… in initializeSuitesAndJarFile() 285 for (XmlSuite cSuite : childSuites){ in initializeSuitesAndJarFile() 306 Collection<XmlSuite> allSuites = getParser(suitePath).parse(); in initializeSuitesAndJarFile() [all …]
|
D | Converter.java | 10 import org.testng.xml.XmlSuite; 42 private void findAllSuites(Collection<XmlSuite> suites, Set<XmlSuite> result) { in findAllSuites() 43 for (XmlSuite s : suites) { in findAllSuites() 45 for (XmlSuite xs : s.getChildSuites()) { in findAllSuites() 60 Set<XmlSuite> allSuites = Sets.newHashSet(); in run() 65 for (XmlSuite suite : allSuites) { in run()
|
D | SuiteResult.java | 4 import org.testng.xml.XmlSuite; 18 private XmlSuite m_suite = null; 21 protected SuiteResult(XmlSuite suite, ITestContext tr) { in SuiteResult() 44 public XmlSuite getSuite() { in getSuite()
|
/external/testng/src/test/java/test/objectfactory/ |
D | CustomFactoryTest.java | 8 import org.testng.xml.XmlSuite; 17 XmlSuite suite = TestHelper.createSuite("test.objectfactory.Simple", "objectfactory"); in setFactoryOnTestNG() 33 XmlSuite suite = TestHelper.createSuite("test.objectfactory.Simple", "objectfactory"); in setFactoryOnSuite() 43 XmlSuite suite = TestHelper.createSuite("test.objectfactory.Simple", "objectfactory"); in setFactoryByAnnotation() 54 XmlSuite suite = TestHelper.createSuite("test.objectfactory.Simple", "objectfactory"); in factoryReceivesContext() 63 XmlSuite suite = TestHelper.createSuite("test.objectfactory.Simple", "objectfactory"); in setInvalidMethodFactoryByAnnotation()
|
/external/testng/src/test/java/test/timeout/ |
D | TimeOutTest.java | 5 import org.testng.xml.XmlSuite; 19 private void privateTimeOutTest(XmlSuite.ParallelMode parallel) { in privateTimeOutTest() 32 …final Iterator<XmlSuite.ParallelMode> parallelModes = Arrays.asList(XmlSuite.ParallelMode.values()… in createData() 53 public void timeOutInParallel(XmlSuite.ParallelMode parallelMode) {
|
D | TimeOutFromXmlTest.java | 7 import org.testng.xml.XmlSuite; 54 XmlSuite result = new XmlSuite(); in twoDifferentTests() 67 private XmlTest createXmlTest(XmlSuite suite, String name) { in createXmlTest() 85 XmlSuite suite = suiteParser.parse(file, stream, true); in timeOutInParallelTestsFromXml()
|
/external/testng/src/test/java/test/testng249/ |
D | VerifyTest.java | 9 import org.testng.xml.XmlSuite; 20 XmlSuite suite = new XmlSuite(); in verify() 33 tng.setXmlSuites(Arrays.asList(new XmlSuite[] { suite })); in verify()
|
/external/testng/src/test/java/test/sanitycheck/ |
D | CheckSuiteNamesTest.java | 9 import org.testng.xml.XmlSuite; 55 XmlSuite xmlSuite1 = new XmlSuite(); in checkProgrammaticSuitesFails() 62 XmlSuite xmlSuite2 = new XmlSuite(); in checkProgrammaticSuitesFails()
|
/external/testng/src/test/java/test/failures/ |
D | FailuresTest.java | 6 import org.testng.xml.XmlSuite; 17 XmlSuite suite = TestHelper.createSuite("test.failures.Child", getSuiteName()); in shouldIncludeFailedMethodsFromBaseClass() 32 XmlSuite suite = TestHelper.createSuite("test.failures.DependentTest", getSuiteName()); in shouldIncludeDependentMethods() 46 XmlSuite suite = TestHelper.createSuite("test.failures.Child", getSuiteName()); in shouldIncludeParameters()
|
/external/testng/src/test/java/test/issue107/ |
D | Issue107Test.java | 7 import org.testng.xml.XmlSuite; 21 final XmlSuite suite = createXmlSuite("Simple suite"); in testSuiteParameterModificationFromListener() 32 final XmlSuite suite = createXmlSuite("Simple suite"); in testSuiteParameterSetFromListener() 37 private void runTest(XmlSuite suite) { in runTest()
|