Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
zapek committed Oct 5, 2024
1 parent ee32bc9 commit 6ae36a9
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.*;

class IdentityServiceStorageTest
{
Expand All @@ -35,6 +34,15 @@ void ParseIdentityString_Success()
assertTrue(identityServiceStorage.isSuccess());
}

@Test
void ParseIdentityString_Input_Output_Success()
{
var input = "v2 {P:K:1 I:133E525084DE5D4D}{T:F:4096 P:1614029822 T:1614029841}{R:50 50 0 0}";

var identityServiceStorage = new IdentityServiceStorage(input);
assertEquals(input, identityServiceStorage.out());
}

@Test
void ParseIdentityString_Negative_Rating_Success()
{
Expand Down

0 comments on commit 6ae36a9

Please sign in to comment.