diff options
author | James Moger <james.moger@gitblit.com> | 2014-04-12 10:00:12 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-04-12 11:40:10 -0400 |
commit | ba567069542e1f6769097ff78cd9612a9f08eb83 (patch) | |
tree | cd87bc2dd205b5c346a35fecaf0f52fe6e00c416 /src/test | |
parent | aa89bef3a9e06404afb268426cbab1ef20c3857c (diff) | |
download | gitblit-ba567069542e1f6769097ff78cd9612a9f08eb83.tar.gz gitblit-ba567069542e1f6769097ff78cd9612a9f08eb83.zip |
Add TicketHook extension
Diffstat (limited to 'src/test')
3 files changed, 12 insertions, 0 deletions
diff --git a/src/test/java/com/gitblit/tests/BranchTicketServiceTest.java b/src/test/java/com/gitblit/tests/BranchTicketServiceTest.java index 4bd74f51..6119b8db 100644 --- a/src/test/java/com/gitblit/tests/BranchTicketServiceTest.java +++ b/src/test/java/com/gitblit/tests/BranchTicketServiceTest.java @@ -17,10 +17,12 @@ package com.gitblit.tests; import com.gitblit.IStoredSettings; import com.gitblit.manager.INotificationManager; +import com.gitblit.manager.IPluginManager; import com.gitblit.manager.IRepositoryManager; import com.gitblit.manager.IRuntimeManager; import com.gitblit.manager.IUserManager; import com.gitblit.manager.NotificationManager; +import com.gitblit.manager.PluginManager; import com.gitblit.manager.RepositoryManager; import com.gitblit.manager.RuntimeManager; import com.gitblit.manager.UserManager; @@ -50,12 +52,14 @@ public class BranchTicketServiceTest extends TicketServiceTest { IStoredSettings settings = getSettings(deleteAll); IRuntimeManager runtimeManager = new RuntimeManager(settings).start(); + IPluginManager pluginManager = new PluginManager(runtimeManager).start(); INotificationManager notificationManager = new NotificationManager(settings).start(); IUserManager userManager = new UserManager(runtimeManager).start(); IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, userManager).start(); BranchTicketService service = new BranchTicketService( runtimeManager, + pluginManager, notificationManager, userManager, repositoryManager).start(); diff --git a/src/test/java/com/gitblit/tests/FileTicketServiceTest.java b/src/test/java/com/gitblit/tests/FileTicketServiceTest.java index 3cc25218..20cde26b 100644 --- a/src/test/java/com/gitblit/tests/FileTicketServiceTest.java +++ b/src/test/java/com/gitblit/tests/FileTicketServiceTest.java @@ -17,10 +17,12 @@ package com.gitblit.tests; import com.gitblit.IStoredSettings; import com.gitblit.manager.INotificationManager; +import com.gitblit.manager.IPluginManager; import com.gitblit.manager.IRepositoryManager; import com.gitblit.manager.IRuntimeManager; import com.gitblit.manager.IUserManager; import com.gitblit.manager.NotificationManager; +import com.gitblit.manager.PluginManager; import com.gitblit.manager.RepositoryManager; import com.gitblit.manager.RuntimeManager; import com.gitblit.manager.UserManager; @@ -49,12 +51,14 @@ public class FileTicketServiceTest extends TicketServiceTest { IStoredSettings settings = getSettings(deleteAll); IRuntimeManager runtimeManager = new RuntimeManager(settings).start(); + IPluginManager pluginManager = new PluginManager(runtimeManager).start(); INotificationManager notificationManager = new NotificationManager(settings).start(); IUserManager userManager = new UserManager(runtimeManager).start(); IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, userManager).start(); FileTicketService service = new FileTicketService( runtimeManager, + pluginManager, notificationManager, userManager, repositoryManager).start(); diff --git a/src/test/java/com/gitblit/tests/RedisTicketServiceTest.java b/src/test/java/com/gitblit/tests/RedisTicketServiceTest.java index 5a4bda73..94391a15 100644 --- a/src/test/java/com/gitblit/tests/RedisTicketServiceTest.java +++ b/src/test/java/com/gitblit/tests/RedisTicketServiceTest.java @@ -18,10 +18,12 @@ package com.gitblit.tests; import com.gitblit.IStoredSettings; import com.gitblit.Keys; import com.gitblit.manager.INotificationManager; +import com.gitblit.manager.IPluginManager; import com.gitblit.manager.IRepositoryManager; import com.gitblit.manager.IRuntimeManager; import com.gitblit.manager.IUserManager; import com.gitblit.manager.NotificationManager; +import com.gitblit.manager.PluginManager; import com.gitblit.manager.RepositoryManager; import com.gitblit.manager.RuntimeManager; import com.gitblit.manager.UserManager; @@ -57,12 +59,14 @@ public class RedisTicketServiceTest extends TicketServiceTest { IStoredSettings settings = getSettings(deleteAll); IRuntimeManager runtimeManager = new RuntimeManager(settings).start(); + IPluginManager pluginManager = new PluginManager(runtimeManager).start(); INotificationManager notificationManager = new NotificationManager(settings).start(); IUserManager userManager = new UserManager(runtimeManager).start(); IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, userManager).start(); RedisTicketService service = new RedisTicketService( runtimeManager, + pluginManager, notificationManager, userManager, repositoryManager).start(); |