[New] Added RuntimeMock.getComponent()
This commit is contained in:
parent
4b2e8b9f81
commit
3a18baec03
|
@ -59,6 +59,10 @@ public class RuntimeMock {
|
|||
return this.container.getComponent(ServiceHandler.class);
|
||||
}
|
||||
|
||||
public <T> T getComponent(Class<T> clazz) {
|
||||
return this.container.getComponent(clazz);
|
||||
}
|
||||
|
||||
public StrolchRealm getRealm(String realm) {
|
||||
return this.container.getRealm(realm);
|
||||
}
|
||||
|
@ -229,5 +233,4 @@ public class RuntimeMock {
|
|||
}
|
||||
return new StrolchVersion(properties);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue