File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/test/java/com/programmers/springweekly/service/customer Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 7
7
8
8
import com .programmers .springweekly .domain .customer .Customer ;
9
9
import com .programmers .springweekly .domain .customer .CustomerType ;
10
+ import com .programmers .springweekly .dto .customer .request .CustomerUpdateRequest ;
10
11
import com .programmers .springweekly .repository .customer .CustomerRepository ;
11
12
import com .programmers .springweekly .service .CustomerService ;
12
13
import java .util .List ;
@@ -27,6 +28,16 @@ public class CustomerServiceUnitTest {
27
28
@ InjectMocks
28
29
CustomerService customerService ;
29
30
31
+ @ Test
32
+ void update () {
33
+ // given
34
+ UUID uuid = UUID .randomUUID ();
35
+ Customer customer =
new Customer (
uuid ,
"changhyeon" ,
"[email protected] " ,
CustomerType .
BLACKLIST );
36
+ CustomerUpdateRequest customerUpdateRequest =
new CustomerUpdateRequest (
uuid ,
"changhyeon" ,
"[email protected] " ,
CustomerType .
BLACKLIST );
37
+
38
+ willDoNothing ().given (customerRepository ).update (customer );
39
+ }
40
+
30
41
@ Test
31
42
void findById () {
32
43
// given
You can’t perform that action at this time.
0 commit comments