package com.cloudroam.service.impl; import com.cloudroam.service.CalCalendarService; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.annotation.Rollback; import org.springframework.test.context.ActiveProfiles; import org.springframework.transaction.annotation.Transactional; import static org.junit.jupiter.api.Assertions.*; @SpringBootTest @Transactional @Rollback @ActiveProfiles("test") class CalCalendarServiceImplTest { @Autowired private CalCalendarService calCalendarService; @Test public void generator(){ calCalendarService.generateCalendar(2024); } }