mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 20:18:36 +00:00
Add additional verification code parser test case.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
/*
|
||||
* Copyright 2024 Signal Messenger, LLC
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
package org.thoughtcrime.securesms.service;
|
||||
|
||||
import org.junit.Before;
|
||||
@@ -14,6 +19,9 @@ import static org.mockito.ArgumentMatchers.anyBoolean;
|
||||
import static org.mockito.ArgumentMatchers.contains;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
/**
|
||||
* Tests {@link VerificationCodeParser}
|
||||
*/
|
||||
public class VerificationCodeParserTest extends BaseUnitTest {
|
||||
|
||||
public static Collection<String[]> challenges() {
|
||||
@@ -82,7 +90,8 @@ public class VerificationCodeParserTest extends BaseUnitTest {
|
||||
{"【SIGNAL】 Your code is: 423-431", "423431"},
|
||||
{"<#>【SIGNAL】<#> Your code: 298-763\nabAbCDEFO1g", "298763"},
|
||||
|
||||
{"SIGNAL: Your code is: 123456\nDo not share this code\n\nabAbCDEFO1g", "123456"}
|
||||
{ "SIGNAL: Your code is: 123456\nDo not share this code\n\nabAbCDEFO1g", "123456" },
|
||||
{ "SIGNAL: Your code is: 123456\nDo not share this code. Signal will never ask for it.\n\ndoDiFGKPO1r", "123456" }
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user