Skip to content

Commit

Permalink
added some basic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Arielpetit committed Oct 23, 2024
1 parent 532084d commit f9e76d2
Showing 1 changed file with 21 additions and 0 deletions.
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);
}
}

0 comments on commit f9e76d2

Please sign in to comment.