diff --git a/core/src/main/java/se/su/dsv/scipro/CoreConfig.java b/core/src/main/java/se/su/dsv/scipro/CoreConfig.java index 2dc8f54929..43c4d7ed10 100644 --- a/core/src/main/java/se/su/dsv/scipro/CoreConfig.java +++ b/core/src/main/java/se/su/dsv/scipro/CoreConfig.java @@ -96,6 +96,7 @@ import se.su.dsv.scipro.match.TargetRepository; import se.su.dsv.scipro.match.TargetServiceImpl; import se.su.dsv.scipro.milestones.MilestoneActivityTemplateRepository; import se.su.dsv.scipro.milestones.service.ActivateCompletedMilestonesOnNewProjects; +import se.su.dsv.scipro.milestones.service.MilestoneActivator; import se.su.dsv.scipro.milestones.service.MilestoneActivityTemplateService; import se.su.dsv.scipro.milestones.service.impl.MilestoneActivityTemplateServiceImpl; import se.su.dsv.scipro.milestones.service.impl.MilestonePhaseTemplateServiceImpl; @@ -1129,4 +1130,21 @@ public class CoreConfig { public GroupFacadeImpl groupFacade() { return new GroupFacadeImpl(); } + + @Bean + public MilestoneActivator milestoneActivator( + EventBus eventBus, + MilestoneServiceImpl milestoneService, + MilestoneActivityTemplateService milestoneActivityTemplateService, + FinalSeminarService finalSeminarService, + NotificationController notificationController + ) { + return new MilestoneActivator( + milestoneActivityTemplateService, + milestoneService, + eventBus, + finalSeminarService, + notificationController + ); + } } diff --git a/core/src/test/java/se/su/dsv/scipro/test/BeanDefinitionsTest.java b/core/src/test/java/se/su/dsv/scipro/test/BeanDefinitionsTest.java new file mode 100644 index 0000000000..8dd6ff6130 --- /dev/null +++ b/core/src/test/java/se/su/dsv/scipro/test/BeanDefinitionsTest.java @@ -0,0 +1,18 @@ +package se.su.dsv.scipro.test; + +import static org.junit.jupiter.api.Assertions.assertNotNull; + +import jakarta.inject.Inject; +import org.junit.jupiter.api.Test; +import se.su.dsv.scipro.milestones.service.MilestoneActivator; + +public class BeanDefinitionsTest extends IntegrationTest { + + @Inject + MilestoneActivator milestoneActivator; + + @Test + public void milestone_activator() { + assertNotNull(milestoneActivator); + } +}