use of com.tvd12.ezyfoxserver.setting.EzySimpleAppSetting in project ezyfox-server by youngmonkeys.
the class EzyAppsStarterTest method test2.
@Test
public void test2() {
Map<String, ClassLoader> loaders = new ConcurrentHashMap<>();
EzySimpleZoneContext zoneContext = EzyZoneContextsTest.newDefaultZoneContext();
EzySimpleApplication app = new EzySimpleApplication();
EzySimpleAppSetting appSetting = new EzySimpleAppSetting();
appSetting.setName("abc");
app.setSetting(appSetting);
EzySimpleAppContext appContext = new EzySimpleAppContext();
appContext.setApp(app);
EzySimpleZoneSetting zoneSetting = new EzySimpleZoneSetting();
EzySimpleAppsSetting appsSetting = new EzySimpleAppsSetting();
appsSetting.setItem(appSetting);
zoneSetting.setApplications(appsSetting);
zoneContext.addAppContext(appSetting, appContext);
EzyAppsStarter starter = new EzyAppsStarter.Builder().zoneContext(zoneContext).appClassLoaders(loaders).build();
starter.start();
}
use of com.tvd12.ezyfoxserver.setting.EzySimpleAppSetting in project ezyfox-server by youngmonkeys.
the class EzySimpleAppSettingTest method test.
@Test
public void test() {
EzySimpleAppSetting setting = new EzySimpleAppSetting();
setting.setMaxUsers(1);
setting.setName("hello");
setting.setHomePath("abc");
setting.setEntryLoader(TestAppEntryLoader.class);
System.out.println(setting.getLocation());
assertEquals(setting.getEntryLoader(), TestAppEntryLoader.class.getName());
}
Aggregations