-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
532084d
commit f9e76d2
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...ce-impl/src/test/java/com/adorsys/webank/obs/serviceimpl/RegistrationServiceImplTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import org.junit.jupiter.api.Test; | ||
import com.adorsys.webank.obs.serviceimpl.RegistrationServiceImpl; | ||
|
||
public class RegistrationServiceImplTest { | ||
|
||
private final RegistrationServiceImpl registrationService = new RegistrationServiceImpl(); | ||
|
||
@Test | ||
public void testRegisterAccountSuccess() { | ||
// Arrange | ||
String phoneNumber = "1234567890"; | ||
String publicKey = "dummyPublicKey"; | ||
|
||
// Act | ||
String result = registrationService.registerAccount(phoneNumber, publicKey); | ||
|
||
// Assert | ||
assertEquals("Successfully registered account for phone number: 1234567890", result); | ||
} | ||
} |