Class TestBenchRecorderSuperClassCandidateScanner
java.lang.Object
com.vaadin.copilot.testbenchgenerator.TestBenchRecorderSuperClassCandidateScanner
Finds the custom TestBench base classes used by recorded TestBench tests.
Important note: This class does a heavy work, so methods should run in async
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TestBenchRecorderSuperClassCandidateScanner
public TestBenchRecorderSuperClassCandidateScanner()
-
-
Method Details
-
scan
Scans the test source folder for TestBench tests and counts the custom superclasses they use.- Returns:
- fully qualified superclass names and the number of tests using each one
- Throws:
IOException- if the test source folder cannot be read
-
getCandidatesInOrder
Gets all candidate superclasses ordered by how often recorded tests use them. Candidates with the same count are ordered by class name.BrowserTestBaseis added as the last, fallback superclass.- Returns:
- fully qualified candidate superclass names, most frequently used first
- Throws:
IOException- if the test source folder cannot be read
-