示例#1
0
 public void Test_category_v2(String ctg_name_str, int... expd) {
   Xowe_wiki wiki = bldr_fxt.Wiki();
   byte[] ctg_name_bry = Bry_.new_a7(ctg_name_str);
   Xoctg_data_ctg ctg = new Xoctg_data_ctg(ctg_name_bry);
   wiki.Db_mgr_as_sql().Load_mgr().Load_ctg_v2(ctg, ctg_name_bry);
   Tfds.Eq_ary(expd, Xto_int_ary(ctg));
 }
示例#2
0
 public void Test_search(String search_word_str, int... expd) {
   Xowe_wiki wiki = bldr_fxt.Wiki();
   List_adp rv = List_adp_.new_();
   byte[] search_word_bry = Bry_.new_a7(search_word_str);
   wiki.Db_mgr_as_sql().Load_mgr().Load_search(Cancelable_.Never, rv, search_word_bry, 100);
   Tfds.Eq_ary(expd, Xto_int_ary(rv));
 }
示例#3
0
 public void Test_load_ttl(int ns_id, String ttl_str, Xowd_page_itm expd) {
   Xowe_wiki wiki = bldr_fxt.Wiki();
   Xow_ns ns = wiki.Ns_mgr().Ids_get_or_null(ns_id);
   byte[] ttl_bry = Bry_.new_a7(ttl_str);
   wiki.Db_mgr_as_sql().Load_mgr().Load_by_ttl(actl, ns, ttl_bry);
   Tfds.Eq(expd.Id(), actl.Id());
   Tfds.Eq_date(expd.Modified_on(), actl.Modified_on());
   Tfds.Eq(expd.Redirected(), actl.Redirected());
   Tfds.Eq(expd.Text_len(), actl.Text_len());
 }
示例#4
0
 public Db_mgr_fxt Exec_run(Xobd_parser_wkr wkr) {
   bldr_fxt.Run(wkr);
   return this;
 }
示例#5
0
 public Db_mgr_fxt Exec_run(Xob_cmd cmd) {
   bldr_fxt.Run_cmds(cmd);
   return this;
 }
示例#6
0
 public Xowd_page_itm doc_ttl_(int id, String title) {
   return bldr_fxt.doc_(id, "2012-01-02 03:04", title, "IGNORE");
 }
示例#7
0
 public Xowd_page_itm doc_wo_date_(int id, String title, String text) {
   return bldr_fxt.doc_(id, "2012-01-02 03:04", title, text);
 }
示例#8
0
 public Xowd_page_itm doc_(int id, String date, String title, String text) {
   return bldr_fxt.doc_(id, date, title, text);
 }
示例#9
0
 public Db_mgr_fxt doc_ary_(Xowd_page_itm... v) {
   bldr_fxt.doc_ary_(v);
   return this;
 }
示例#10
0
 public Xob_bldr Bldr() {
   return bldr_fxt.Bldr();
 }
示例#11
0
 public Xowe_wiki Wiki() {
   return bldr_fxt.Wiki();
 }
示例#12
0
 public void Test_load_page(int ns_id, int page_id, String expd) {
   Xowe_wiki wiki = bldr_fxt.Wiki();
   Xow_ns ns = wiki.Ns_mgr().Ids_get_or_null(ns_id);
   wiki.Db_mgr_as_sql().Load_mgr().Load_page(actl.Id_(page_id), ns, false);
   Tfds.Eq(expd, String_.new_a7(actl.Text()));
 }