|
@@ -1,4 +1,4 @@
|
|
-package com.mooctest.crowd.domain.service;
|
|
|
|
|
|
+package com.mooctest.crowd.domain.domainservice;
|
|
|
|
|
|
import com.mooctest.crowd.domain.command.RegisterCommand;
|
|
import com.mooctest.crowd.domain.command.RegisterCommand;
|
|
import com.mooctest.crowd.domain.domainobject.Account;
|
|
import com.mooctest.crowd.domain.domainobject.Account;
|
|
@@ -9,7 +9,7 @@ import static org.junit.Assert.*;
|
|
* @Author: xuexb
|
|
* @Author: xuexb
|
|
* @Date: 2019.7.5 14:09
|
|
* @Date: 2019.7.5 14:09
|
|
*/
|
|
*/
|
|
-public class RegisterServiceTest {
|
|
|
|
|
|
+public class RegisterDServiceTest {
|
|
|
|
|
|
@org.junit.Test
|
|
@org.junit.Test
|
|
public void should_register_success_when_user_register_by_mobile_num() {
|
|
public void should_register_success_when_user_register_by_mobile_num() {
|
|
@@ -20,7 +20,7 @@ public class RegisterServiceTest {
|
|
registerCommand.setPassword("12341324");
|
|
registerCommand.setPassword("12341324");
|
|
|
|
|
|
// action
|
|
// action
|
|
- Account newAccount = RegisterService.register(registerCommand);
|
|
|
|
|
|
+ Account newAccount = RegisterDService.register(registerCommand);
|
|
|
|
|
|
// assert
|
|
// assert
|
|
assertNotNull(newAccount);
|
|
assertNotNull(newAccount);
|
|
@@ -36,7 +36,7 @@ public class RegisterServiceTest {
|
|
registerCommand.setPassword("12341324");
|
|
registerCommand.setPassword("12341324");
|
|
|
|
|
|
// action
|
|
// action
|
|
- Account newAccount = RegisterService.register(registerCommand);
|
|
|
|
|
|
+ Account newAccount = RegisterDService.register(registerCommand);
|
|
|
|
|
|
// assert
|
|
// assert
|
|
assertNotNull(newAccount);
|
|
assertNotNull(newAccount);
|