public static void main(String... args) throws Exception {
new Test().run();
}
void run() throws Exception {
NestedExamples e = new NestedExamples();
List<String> names = getNames(e.getClasses());
test(names);
test(reverse(names));
names = Arrays.asList(e.getClassNames());
test(names);
test(reverse(names));
if (errors > 0)
throw new RuntimeException(errors + " errors occurred");