205206207208209210211212213
RegisterFactoryThread(String name, ICUService service, long delay, TestLog log) { super("REG " + name, service, delay, log); } protected void iterate() { Factory f = new TestFactory(getCLV()); service.registerFactory(f); log.logln(f.toString()); }
228229230231232233234235236237
int s = factories.size(); if (s == 0) { factories = service.factories(); } else { int n = r.nextInt(s); Factory f = (Factory)factories.remove(n); boolean success = service.unregisterFactory(f); log.logln("factory: " + f + (success ? " succeeded." : " *** failed.")); } }
247248249250251252253254255256
this.factories = factories; } public void iterate() { if (n < factories.length) { Factory f = factories[n++]; boolean success = service.unregisterFactory(f); log.logln("factory: " + f + (success ? " succeeded." : " *** failed.")); } }
195196197198199200201202203204205
confirmBoolean("18) find invisible", !ids.contains("en_US_BAR")); service.reset(); // an anonymous factory than handles all ids { Factory factory = new Factory() { public Object create(Key key, ICUService unusedService) { return new ULocale(key.currentID()); } public void updateVisibleIDs(Map unusedResult) {