File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
main/java/com/moing/backend/global/util
test/java/com/moing/backend/config Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 6
6
import lombok .extern .slf4j .Slf4j ;
7
7
import org .springframework .beans .factory .annotation .Value ;
8
8
import org .springframework .scheduling .annotation .Async ;
9
+ import org .springframework .stereotype .Component ;
9
10
import org .springframework .stereotype .Service ;
10
11
11
12
import javax .servlet .http .HttpServletRequest ;
16
17
17
18
import static com .slack .api .webhook .WebhookPayloads .payload ;
18
19
19
- @ Service
20
+ @ Component
20
21
@ Slf4j
21
22
public class SlackService {
22
23
Original file line number Diff line number Diff line change 8
8
import com .moing .backend .global .config .security .filter .JwtAuthenticationEntryPoint ;
9
9
import com .moing .backend .global .config .security .jwt .TokenUtil ;
10
10
import com .moing .backend .global .config .security .util .AuthenticationUtil ;
11
+ import com .moing .backend .global .util .SlackService ;
11
12
import org .junit .jupiter .api .BeforeEach ;
12
13
import org .junit .jupiter .api .extension .ExtendWith ;
13
14
import org .springframework .beans .factory .annotation .Autowired ;
32
33
@ MockBean (JpaMetamodelMappingContext .class )
33
34
@ ExtendWith ({RestDocumentationExtension .class , SpringExtension .class })
34
35
public class CommonControllerTest {
36
+
35
37
@ Autowired
36
38
protected RestDocumentationResultHandler restDocs ;
37
39
@@ -56,6 +58,9 @@ public class CommonControllerTest {
56
58
@ MockBean
57
59
public MemberGetService memberQueryService ;
58
60
61
+ @ MockBean
62
+ private SlackService slackService ;
63
+
59
64
@ BeforeEach
60
65
public void setUp (final WebApplicationContext context , final RestDocumentationContextProvider provider ) throws Exception {
61
66
You can’t perform that action at this time.
0 commit comments