@Test public void validLaunchTest() throws Exception { Launcher.main("--module-name", "io.github.udaychandra.susel.mock.svc.impl", "--meta-inf-root-path", "build"); var expected = new Properties(); expected.setProperty( "io.github.udaychandra.susel.mock.svc.impl.MyAnotherServiceImpl_Refs", "io.github.udaychandra.susel.mock.svc:io.github.udaychandra.susel.mock.svc.MyService;setMyService;false;false"); expected.setProperty("io.github.udaychandra.susel.mock.svc.impl.MyAnotherServiceImpl_Activate", "activateCustom"); var actual = new Properties(); actual.load(new FileInputStream(new File("build/META-INF/susel.metadata"))); assertEquals(expected, actual); }
public static void main(String...args) { var moduleName = getOption(MODULE_NAME_OPTION, args); var metaInfRootPath = getOption(META_INF_ROOT_PATH_OPTION, args); new Processor().process(moduleName, metaInfRootPath); }
Launcher { public static void main(String...args) { var moduleName = getOption(MODULE_NAME_OPTION, args); var metaInfRootPath = getOption(META_INF_ROOT_PATH_OPTION, args); new Processor().process(moduleName, metaInfRootPath); } }
Launcher { public static void main(String...args) { var moduleName = getOption(MODULE_NAME_OPTION, args); var metaInfRootPath = getOption(META_INF_ROOT_PATH_OPTION, args); new Processor().process(moduleName, metaInfRootPath); }  }
Launcher { public static void main(String...args) { var moduleName = getOption(MODULE_NAME_OPTION, args); var metaInfRootPath = getOption(META_INF_ROOT_PATH_OPTION, args); new Processor().process(moduleName, metaInfRootPath); }  static void main(String...args); }
Launcher { public static void main(String...args) { var moduleName = getOption(MODULE_NAME_OPTION, args); var metaInfRootPath = getOption(META_INF_ROOT_PATH_OPTION, args); new Processor().process(moduleName, metaInfRootPath); }  static void main(String...args);  }