mirror of
https://github.com/gnosygnu/xowa.git
synced 2024-10-27 20:34:16 +00:00
Project: Rename test classes for xowa_maven script
This commit is contained in:
parent
5204d33af7
commit
1cde843264
@ -27,7 +27,7 @@ public class Gfo_usr_dlg_ {
|
|||||||
}
|
}
|
||||||
public static String Test__list__term__get_1st() {
|
public static String Test__list__term__get_1st() {
|
||||||
Instance = Noop;
|
Instance = Noop;
|
||||||
String[] rv = ((Gfo_usr_dlg__gui_test)test__list.Gui_wkr()).Warns().To_str_ary_and_clear();
|
String[] rv = ((Gfo_usr_dlg__gui_mock)test__list.Gui_wkr()).Warns().To_str_ary_and_clear();
|
||||||
return rv.length == 0 ? "" : rv[0];
|
return rv.length == 0 ? "" : rv[0];
|
||||||
}
|
}
|
||||||
public static void Test__show__init() {
|
public static void Test__show__init() {
|
||||||
|
@ -18,7 +18,7 @@ import gplx.core.consoles.*; import gplx.core.lists.rings.*;
|
|||||||
public class Gfo_usr_dlg__gui_ {
|
public class Gfo_usr_dlg__gui_ {
|
||||||
public static final Gfo_usr_dlg__gui Noop = new Gfo_usr_dlg__gui_noop();
|
public static final Gfo_usr_dlg__gui Noop = new Gfo_usr_dlg__gui_noop();
|
||||||
public static final Gfo_usr_dlg__gui Console = new Gfo_usr_dlg__gui_console();
|
public static final Gfo_usr_dlg__gui Console = new Gfo_usr_dlg__gui_console();
|
||||||
public static final Gfo_usr_dlg__gui Test = new Gfo_usr_dlg__gui_test();
|
public static final Gfo_usr_dlg__gui Test = new Gfo_usr_dlg__gui_mock();
|
||||||
public static final Gfo_usr_dlg__gui Mem = new Gfo_usr_dlg__gui_mem_string();
|
public static final Gfo_usr_dlg__gui Mem = new Gfo_usr_dlg__gui_mem_string();
|
||||||
public static String Mem_file() {return ((Gfo_usr_dlg__gui_mem_string)Mem).file;}
|
public static String Mem_file() {return ((Gfo_usr_dlg__gui_mem_string)Mem).file;}
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ Apache License: https://github.com/gnosygnu/xowa/blob/master/LICENSE-APACHE2.txt
|
|||||||
*/
|
*/
|
||||||
package gplx;
|
package gplx;
|
||||||
import gplx.core.lists.rings.*;
|
import gplx.core.lists.rings.*;
|
||||||
public class Gfo_usr_dlg__gui_test implements Gfo_usr_dlg__gui {
|
public class Gfo_usr_dlg__gui_mock implements Gfo_usr_dlg__gui {
|
||||||
public List_adp Warns() {return warns;} private final List_adp warns = List_adp_.New();
|
public List_adp Warns() {return warns;} private final List_adp warns = List_adp_.New();
|
||||||
public List_adp Msgs() {return msgs;} private final List_adp msgs = List_adp_.New();
|
public List_adp Msgs() {return msgs;} private final List_adp msgs = List_adp_.New();
|
||||||
public Ring__string Prog_msgs() {return ring;} private final Ring__string ring = new Ring__string().Max_(0);
|
public Ring__string Prog_msgs() {return ring;} private final Ring__string ring = new Ring__string().Max_(0);
|
@ -16,7 +16,7 @@ Apache License: https://github.com/gnosygnu/xowa/blob/master/LICENSE-APACHE2.txt
|
|||||||
package gplx.core.consoles; import gplx.*; import gplx.core.*;
|
package gplx.core.consoles; import gplx.*; import gplx.core.*;
|
||||||
import org.junit.*; import gplx.core.tests.*; import gplx.core.envs.*;
|
import org.junit.*; import gplx.core.tests.*; import gplx.core.envs.*;
|
||||||
public class Gfo_cmd_arg_mgr_tst {
|
public class Gfo_cmd_arg_mgr_tst {
|
||||||
@Before public void init() {fxt.Clear();} private final Gfo_cmd_arg_mgr_fxt fxt = new Gfo_cmd_arg_mgr_fxt();
|
@Before public void init() {fxt.Clear();} private final Gfo_cmd_arg_mgr_fxt fxt = new Gfo_cmd_arg_mgr_fxt();
|
||||||
@Test public void Val__many() {
|
@Test public void Val__many() {
|
||||||
fxt.Init_args(fxt.Make_arg("a"), fxt.Make_arg("b"));
|
fxt.Init_args(fxt.Make_arg("a"), fxt.Make_arg("b"));
|
||||||
fxt.Exec_process("--a", "0", "--b", "1");
|
fxt.Exec_process("--a", "0", "--b", "1");
|
||||||
@ -67,9 +67,9 @@ public class Gfo_cmd_arg_mgr_tst {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
class Gfo_cmd_arg_mgr_fxt {
|
class Gfo_cmd_arg_mgr_fxt {
|
||||||
private final Tst_mgr tst_mgr = new Tst_mgr();
|
private final Tst_mgr tst_mgr = new Tst_mgr();
|
||||||
public Gfo_usr_dlg Usr_dlg() {return usr_dlg;} Gfo_usr_dlg usr_dlg;
|
public Gfo_usr_dlg Usr_dlg() {return usr_dlg;} Gfo_usr_dlg usr_dlg;
|
||||||
public Gfo_cmd_arg_mgr Mgr() {return mgr;} private final Gfo_cmd_arg_mgr mgr = new Gfo_cmd_arg_mgr();
|
public Gfo_cmd_arg_mgr Mgr() {return mgr;} private final Gfo_cmd_arg_mgr mgr = new Gfo_cmd_arg_mgr();
|
||||||
public Gfo_cmd_arg_mgr_fxt Clear() {
|
public Gfo_cmd_arg_mgr_fxt Clear() {
|
||||||
if (usr_dlg == null)
|
if (usr_dlg == null)
|
||||||
usr_dlg = Gfo_usr_dlg_.Test();
|
usr_dlg = Gfo_usr_dlg_.Test();
|
||||||
@ -100,7 +100,7 @@ class Gfo_cmd_arg_mgr_fxt {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
public Gfo_cmd_arg_mgr_fxt Test_write(String... expd) {
|
public Gfo_cmd_arg_mgr_fxt Test_write(String... expd) {
|
||||||
Tfds.Eq_ary_str(expd, ((Gfo_usr_dlg__gui_test)usr_dlg.Gui_wkr()).Msgs().To_str_ary_and_clear());
|
Tfds.Eq_ary_str(expd, ((Gfo_usr_dlg__gui_mock)usr_dlg.Gui_wkr()).Msgs().To_str_ary_and_clear());
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
public void Test_val_as_url_rel_dir_or(String root_dir, String dir_spr, String val, String expd) {
|
public void Test_val_as_url_rel_dir_or(String root_dir, String dir_spr, String val, String expd) {
|
||||||
|
@ -343,7 +343,7 @@ public class Xop_fxt {
|
|||||||
}
|
}
|
||||||
public void tst_Warn(String... expd) {
|
public void tst_Warn(String... expd) {
|
||||||
Gfo_usr_dlg usr_dlg = app.Usr_dlg();
|
Gfo_usr_dlg usr_dlg = app.Usr_dlg();
|
||||||
Gfo_usr_dlg__gui_test ui_wkr = (Gfo_usr_dlg__gui_test)usr_dlg.Gui_wkr();
|
Gfo_usr_dlg__gui_mock ui_wkr = (Gfo_usr_dlg__gui_mock)usr_dlg.Gui_wkr();
|
||||||
String[] actl = ui_wkr.Warns().To_str_ary();
|
String[] actl = ui_wkr.Warns().To_str_ary();
|
||||||
Tfds.Eq_ary_str(expd, actl);
|
Tfds.Eq_ary_str(expd, actl);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user