コード例 #1
0
 @Before
 public void setUp() {
   assumeTrue(ShouldRun.X);
   StringMap stringMap = new SimpleStringMap(null);
   Registry.put(StringMap.class, stringMap);
   Registry.put(TaggedStringSources.class, new StringMapAsTaggedStringSources(stringMap));
   Registry.put(ItemListPageFactoryFactory.class, new XItemListPageFactoryFactory());
   Registry.put(XDeviceInfo.class, new FakeDeviceInfo());
   Registry.put(IFormFactory.class, new FakeFormFactory());
   Registry.put(ILogManager.class, new FakeLogManager());
   Registry.put(XLogWriter.class, new XLogWriter());
   Registry.put(XSearchableList.Factory.class, new FakeSearchableListFactory());
   testObject = RootPageFactory.of();
 }
コード例 #2
0
ファイル: XJSON.java プロジェクト: curtcox/PlatformX
 private static ILog getLog() {
   return Registry.get(ILogManager.class).getLog(XJSON.class);
 }
コード例 #3
0
 XReflection reflection() {
   return Registry.get(XReflection.class);
 }
コード例 #4
0
ファイル: C1UIRenderer.java プロジェクト: curtcox/PlatformX
 private static ILog getLog() {
   return Registry.get(ILogManager.class).getLog(C1UIRenderer.class);
 }