コード例 #1
0
 @Test
 public void testParseSourcePaths() throws Exception {
   final ApiGeneratorConfig config = ApiGeneratorConfigImpl.load(kv("beamSourceDir", "../beam"));
   String[] sourcePaths = config.getSourcePaths();
   assertArrayEquals(
       new String[] {"../beam/beam-core/src/main/java", "../beam/beam-gpf/src/main/java"},
       sourcePaths);
 }
コード例 #2
0
 @Test
 public void testPackages() throws Exception {
   final ApiGeneratorConfig config = ApiGeneratorConfigImpl.load();
   String[] sourcePaths = config.getPackages();
   assertArrayEquals(
       new String[] {
         "org.esa.beam.framework.datamodel",
         "org.esa.beam.framework.dataio",
         "org.esa.beam.framework.gpf",
         "org.esa.beam.util"
       },
       sourcePaths);
 }