projects
/
Sone.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add unit test for get sones command, fix some problems
[Sone.git]
/
src
/
test
/
kotlin
/
net
/
pterodactylus
/
sone
/
test
/
Guice.kt
1
package net.pterodactylus.sone.test
2
3
import com.google.inject.Module
4
import kotlin.reflect.KClass
5
6
fun <T : Any> T.bindAs(bindClass: KClass<T>) = Module { it.bind(bindClass.java).toInstance(this@bindAs) }