[New] Added RuntimeMock.getComponent()

This commit is contained in:
Robert von Burg 2020-01-27 16:15:23 +01:00
parent 4b2e8b9f81
commit 3a18baec03
1 changed files with 4 additions and 1 deletions

View File

@ -59,6 +59,10 @@ public class RuntimeMock {
return this.container.getComponent(ServiceHandler.class); return this.container.getComponent(ServiceHandler.class);
} }
public <T> T getComponent(Class<T> clazz) {
return this.container.getComponent(clazz);
}
public StrolchRealm getRealm(String realm) { public StrolchRealm getRealm(String realm) {
return this.container.getRealm(realm); return this.container.getRealm(realm);
} }
@ -229,5 +233,4 @@ public class RuntimeMock {
} }
return new StrolchVersion(properties); return new StrolchVersion(properties);
} }
} }