mirror of https://github.com/reiseburo/offtopic
Move these files into a different package structure
This commit is contained in:
parent
558719abdb
commit
9f06b78fa8
|
@ -0,0 +1,11 @@
|
|||
package offtopic
|
||||
|
||||
import org.apache.commons.pool2.impl.GenericObjectPool
|
||||
|
||||
@Singleton(strict=false)
|
||||
class CuratorPool {
|
||||
GenericObjectPool<CuratorClient> pool
|
||||
|
||||
private CuratorPool() {
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
package offtopic
|
||||
|
||||
import spock.lang.Specification
|
||||
|
||||
class CuratorPoolSpec extends Specification {
|
||||
def "an instance should be an instance"() {
|
||||
expect:
|
||||
CuratorPool.instance instanceof CuratorPool
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue