File tree 3 files changed +12
-51
lines changed
integration-tests/src/test/java
service/src/main/java/com/myhome/configuration/properties/mail
3 files changed +12
-51
lines changed Original file line number Diff line number Diff line change 4
4
import com .myhome .domain .User ;
5
5
import com .myhome .model .CreateUserRequest ;
6
6
import com .myhome .repositories .UserRepository ;
7
- import java .util .Optional ;
8
7
import org .junit .jupiter .api .Test ;
9
8
import org .junit .jupiter .api .TestInstance ;
10
9
import org .junit .jupiter .api .extension .ExtendWith ;
11
10
import org .springframework .beans .factory .annotation .Autowired ;
12
11
import org .springframework .beans .factory .annotation .Value ;
13
12
import org .springframework .boot .test .context .SpringBootTest ;
14
13
import org .springframework .boot .test .web .client .TestRestTemplate ;
15
- import org .springframework .context .annotation .Import ;
16
14
import org .springframework .http .HttpStatus ;
17
15
import org .springframework .http .ResponseEntity ;
18
16
import org .springframework .test .context .junit .jupiter .SpringExtension ;
19
- import testConfig .MailTestConfig ;
17
+
18
+ import java .util .Optional ;
20
19
21
20
import static org .assertj .core .api .Assertions .assertThat ;
22
21
import static org .junit .jupiter .api .Assertions .assertTrue ;
23
22
24
23
@ ExtendWith (SpringExtension .class )
25
- @ Import (MailTestConfig .class )
26
24
@ SpringBootTest (
27
25
classes = MyHomeServiceApplication .class ,
28
26
webEnvironment = SpringBootTest .WebEnvironment .RANDOM_PORT
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ package com .myhome .configuration .properties .mail ;
2
+
3
+ public enum MailTemplatesNames {
4
+ PASSWORD_RESET ("passwordRecoverCode" ),
5
+ PASSWORD_CHANGED ("passwordChanged" ),
6
+ ACCOUNT_CREATED ("accountCreated" ),
7
+ ACCOUNT_CONFIRMED ("accountConfirmed" );
8
+
9
+ MailTemplatesNames (String templateFileName ) {}
10
+ }
You can’t perform that action at this time.
0 commit comments