• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.unicode.cldr.api;
2 
3 import static com.google.common.collect.ImmutableList.toImmutableList;
4 
5 import com.google.common.collect.ImmutableList;
6 import com.ibm.icu.dev.test.TestFmwk.TestGroup;
7 import java.io.PrintWriter;
8 import org.junit.jupiter.api.Test;
9 import org.unicode.cldr.util.TestShimUtils;
10 
11 public class AllTests extends TestGroup {
12     private static final ImmutableList<Class<?>> TEST_CLASSES =
13             ImmutableList.of(
14                     CldrFileDataSourceTest.class,
15                     CldrPathTest.class,
16                     CldrValueTest.class,
17                     FilteredDataTest.class,
18                     PathMatcherTest.class,
19                     PrefixVisitorTest.class,
20                     XmlDataSourceTest.class);
21 
main(String[] args)22     public static void main(String[] args) {
23         System.setProperty("CLDR_ENVIRONMENT", "UNITTEST");
24         new AllTests().run(args, new PrintWriter(System.out));
25     }
26 
getTestClassNames()27     private static String[] getTestClassNames() {
28         return TEST_CLASSES.stream()
29                 .map(Class::getName)
30                 .collect(toImmutableList())
31                 .toArray(new String[0]);
32     }
33 
AllTests()34     public AllTests() {
35         super("org.unicode.cldr.api", getTestClassNames(), "API unit tests");
36     }
37 
38     @Test
runApiTests()39     public void runApiTests() {
40         main(TestShimUtils.getArgs(AllTests.class, "-n -q"));
41     }
42 }
43