Esempio n. 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();
 }
Esempio n. 2
0
 private static ILog getLog() {
   return Registry.get(ILogManager.class).getLog(XJSON.class);
 }
 XReflection reflection() {
   return Registry.get(XReflection.class);
 }
Esempio n. 4
0
 private static ILog getLog() {
   return Registry.get(ILogManager.class).getLog(C1UIRenderer.class);
 }