-
Notifications
You must be signed in to change notification settings - Fork 41
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
aba5e76
commit 062bd78
Showing
10 changed files
with
292 additions
and
23 deletions.
There are no files selected for viewing
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
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
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
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
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 |
---|---|---|
|
@@ -30,6 +30,8 @@ public class BaseTest { | |
"src/test/resources/requests/validation/validate-receiver-email-tests-cases.json"; | ||
private static final String FAIL_REQUEST_WITH_WRONG_RECEIVER_NAME = | ||
"src/test/resources/requests/validation/validate-receiver-name-tests-cases.json"; | ||
private static final String FAIL_REQUEST_WITH_ATTACHMENTS_WITHOUT_FILE_NAME = | ||
"src/test/resources/requests/validation/request-with-attachments-without-file-name.json"; | ||
|
||
private static final String SUCCESS_REPLACE_SECRETS_REQUEST_CASES_PATH = | ||
"src/test/resources/requests/replace-secrets-success-test-cases.json"; | ||
|
@@ -48,6 +50,7 @@ protected interface ActualValue { | |
String RECEIVER_NAME = "Jane Doe"; | ||
String SENDER_EMAIL = "[email protected]"; | ||
String SENDER_NAME = "John Doe"; | ||
String ATTACHED_FILE_NAME = "google-my-business-logo-png-transparent.png"; | ||
|
||
interface Content { | ||
String SUBJECT = "subject_test"; | ||
|
@@ -130,6 +133,10 @@ protected static Stream<String> failTestWithWrongReceiverEmail() throws IOExcept | |
return loadTestCasesFromResourceFile(FAIL_REQUEST_WITH_WRONG_RECEIVER_EMAIL); | ||
} | ||
|
||
protected static Stream<String> failTestWithEmptyFileName() throws IOException { | ||
return loadTestCasesFromResourceFile(FAIL_REQUEST_WITH_ATTACHMENTS_WITHOUT_FILE_NAME); | ||
} | ||
|
||
protected static Stream<String> failTestWithWrongReceiverName() throws IOException { | ||
return loadTestCasesFromResourceFile(FAIL_REQUEST_WITH_WRONG_RECEIVER_NAME); | ||
} | ||
|
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
Oops, something went wrong.