File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
src/main/java/org/javawebstack/framework Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,10 @@ public I18N getTranslation() {
263263 return translation ;
264264 }
265265
266+ public CommandSystem getCommandSystem () {
267+ return commandSystem ;
268+ }
269+
266270 protected void setupModules () {
267271 }
268272
Original file line number Diff line number Diff line change 11package org .javawebstack .framework .testing ;
22
3+ import org .javawebstack .command .CommandResult ;
34import org .javawebstack .framework .WebApplication ;
5+ import org .javawebstack .framework .config .Config ;
46import org .javawebstack .httpserver .test .HTTPTest ;
57import org .javawebstack .injector .Injector ;
68
@@ -28,4 +30,16 @@ public <T> T inject(Class<T> clazz){
2830 public <T > T inject (Class <T > clazz , String name ){
2931 return webApplication .getInjector ().getInstance (clazz , name );
3032 }
33+
34+ public void seed (String name ){
35+ webApplication .getSeeder (name ).seed ();
36+ }
37+
38+ public CommandResult runCommand (String ... input ){
39+ return webApplication .getCommandSystem ().eval (input );
40+ }
41+
42+ public Config getConfig (){
43+ return webApplication .getConfig ();
44+ }
3145}
You can’t perform that action at this time.
0 commit comments