Skip to content

Commit

Permalink
sepinf-inc#2286: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aberenguel committed Oct 9, 2024
1 parent 27562d4 commit e4b113c
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
public class ConversationUtilsTest {

@Test
public void test() {
public void testBuidPartyString() {
assertEquals("Bob (ID:1234|tel:5511999998888|@bobbye)", buidPartyString("Bob", "1234", "5511999998888", "bobbye", null));

assertEquals("Bob (ID:1234|@bobbye)", buidPartyString("Bob", "1234", null, "bobbye", null));
Expand All @@ -24,7 +24,9 @@ public void test() {
assertEquals("(ID:1234|tel:5511999998888|@bobbye)", buidPartyString(null, "1234", "5511999998888", "bobbye", null));

// for WhatsApp
assertEquals("Bob (+5511999998888)", buidPartyString("Bob", "[email protected]", null, null, "WhatsApp"));
assertEquals("Bob (+5511999998888)", buidPartyString("Bob", null, "5511999998888", null, "WhatsApp"));
assertEquals("Bob ([email protected])", buidPartyString("Bob", "[email protected]", null, null, "WhatsApp"));
assertEquals("Bob (5511999998888)", buidPartyString("Bob", null, "5511999998888", null, "WhatsApp"));
assertEquals("Bob ([email protected])", buidPartyString("Bob", "[email protected]", "5511999998888", null, "WhatsApp"));
assertEquals("(5511999998888)", buidPartyString("5511999998888", null, "5511999998888", null, "WhatsApp"));
}
}

0 comments on commit e4b113c

Please sign in to comment.