HTTP_Server: Fix broken test by adding manual override for wiki.Installed [#613]

pull/620/head
gnosygnu 5 years ago
parent e9024e057f
commit 11810c4fff

@ -126,7 +126,8 @@ public class Xowe_wiki implements Xow_wiki, Gfo_invk, Gfo_evt_itm {
public byte[] Wtxt__expand_tmpl(byte[] src) {return parser_mgr.Main().Expand_tmpl(src);}
public boolean Embeddable_enabled() {return embeddable_enabled;} public void Embeddable_enabled_(boolean v) {this.embeddable_enabled = v;} private boolean embeddable_enabled;
public Hxtn_page_mgr Hxtn_mgr() {return hxtn_mgr;} private final Hxtn_page_mgr hxtn_mgr = new Hxtn_page_mgr();
public boolean Installed() {return this.Data__core_mgr() != null;} // not sure if this is the best way
public boolean Installed() {return installed_by_test || this.Data__core_mgr() != null;} // not sure if this is the best way
public void Installed_by_test_(boolean v) {installed_by_test = v;} private boolean installed_by_test = false; // HACK:need to manually mark installed for TEST; DATE:2019-11-17
public Xow_hdump_mgr Html__hdump_mgr() {return html__hdump_mgr;} private final Xow_hdump_mgr html__hdump_mgr;
public Xoae_app Appe() {return app;} private Xoae_app app;

@ -33,6 +33,7 @@ class Http_server_page__fxt {
public void Init__xwiki(String wiki, String abrv, String domain) {
Xowe_wiki xwiki_wiki = fxt.App().Wiki_mgr().Get_by_or_make(Bry_.new_u8(wiki));
xwiki_wiki.Xwiki_mgr().Add_by_atrs(abrv, domain);
xwiki_wiki.Installed_by_test_(Bool_.Y);
}
public void Test__make_url(boolean expd, String wiki_domain, String ttl_bry_arg, String qarg) {
boolean actl = page.Make_url(Bry_.new_u8(wiki_domain), Bry_.new_u8(ttl_bry_arg), Bry_.new_u8(qarg));

Loading…
Cancel
Save