Skip to content

Commit 1e2696f

Browse files
committed
Removed inject methods (Again)
1 parent 0aeabc6 commit 1e2696f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/main/java/org/javawebstack/framework/testing/WebFrameworkTest.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,14 @@ public WebFrameworkTest(WebApplication webApplication){
1717
this.webApplication = webApplication;
1818
}
1919

20-
public WebApplication getWebApplication() {
20+
public WebApplication getApplication() {
2121
return webApplication;
2222
}
2323

2424
public Injector getInjector(){
2525
return webApplication.getInjector();
2626
}
2727

28-
public <T> T inject(Class<T> clazz){
29-
return webApplication.getInjector().getInstance(clazz);
30-
}
31-
32-
public <T> T inject(Class<T> clazz, String name){
33-
return webApplication.getInjector().getInstance(clazz, name);
34-
}
35-
3628
public void seed(String name){
3729
webApplication.getSeeder(name).seed();
3830
}

0 commit comments

Comments
 (0)