assertGraphStrings
Enumerates all accepted strings in the token graph created by the analyzer on the provided text, and then asserts that it's equal to the expected strings. Uses [ ] to create an automaton. Asserts the finite strings of the automaton are all and only the given valid strings.
Parameters
analyzer
analyzer containing the SynonymFilter under test.
text
text to be analyzed.
expectedStrings
all expected finite strings.
Enumerates all accepted strings in the token graph created by the already initialized [ ].