mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-11 07:55:55 +01:00
(refs #115)Fix TestCase
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
package ssh
|
package ssh
|
||||||
|
|
||||||
import org.specs2.mutable._
|
import org.specs2.mutable._
|
||||||
|
import org.specs2.mock.Mockito
|
||||||
import org.apache.sshd.server.command.UnknownCommand
|
import org.apache.sshd.server.command.UnknownCommand
|
||||||
|
import javax.servlet.ServletContext
|
||||||
|
|
||||||
|
class GitCommandFactorySpec extends Specification with Mockito {
|
||||||
|
|
||||||
class GitCommandFactorySpec extends Specification {
|
val factory = new GitCommandFactory(mock[ServletContext])
|
||||||
|
|
||||||
val factory = new GitCommandFactory
|
|
||||||
|
|
||||||
"createCommand" should {
|
"createCommand" should {
|
||||||
"returns GitRecievePack when command is git-receive-pack" in {
|
"returns GitRecievePack when command is git-receive-pack" in {
|
||||||
|
|||||||
Reference in New Issue
Block a user