DeploymentCompleteBuildTriggerService extends BuildTriggerService { @Override public PropertiesProcessor getTriggerPropertiesProcessor() { return new DeploymentCompleteTriggerPropertiesProcessor(cacheManager, metricRegistry, buildTriggerProperties); } DeploymentCompleteBuildTriggerService(@NotNull final PluginDescriptor pluginDescriptor,
                                                 @NotNull final CustomAsyncBuildTriggerFactory triggerFactory,
                                                 @NotNull final AnalyticsTracker analyticsTracker,
                                                 @NotNull final CacheManager cacheManager,
                                                 @NotNull final MetricRegistry metricRegistry,
                                                 @NotNull final BuildTriggerProperties buildTriggerProperties); @NotNull @Override String getName(); @NotNull @Override String getDisplayName(); @NotNull @Override String describeTrigger(@NotNull BuildTriggerDescriptor buildTriggerDescriptor); @NotNull @Override BuildTriggeringPolicy getBuildTriggeringPolicy(); @Override PropertiesProcessor getTriggerPropertiesProcessor(); @Override String getEditParametersUrl(); @Override boolean isMultipleTriggersPerBuildTypeAllowed();  }
@Test public void get_trigger_properties_processor_returns_instance_of_deployment_complete_trigger_properties_processor() throws Exception { DeploymentCompleteBuildTriggerService sut = new DeploymentCompleteBuildTriggerService(new FakePluginDescriptor(), new FakeAsyncBuildTriggerFactory(), new FakeAnalyticsTracker(), new FakeCacheManager(), new FakeMetricRegistry(), new FakeBuildTriggerProperties()); Assert.assertEquals(sut.getTriggerPropertiesProcessor().getClass(), DeploymentCompleteTriggerPropertiesProcessor.class); }