-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #224 from ResearchCollectionsAndPreservation/stage…
…4-dev Dev to UAT
- Loading branch information
Showing
3 changed files
with
121 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,16 @@ | |
import org.junit.runner.RunWith; | ||
import org.mockito.InjectMocks; | ||
import org.mockito.Mock; | ||
import org.mockito.Mockito; | ||
import org.mockito.junit.MockitoJUnitRunner; | ||
import org.recap.PropertyKeyConstants; | ||
import org.recap.ScsbConstants; | ||
import org.recap.ScsbCommonConstants; | ||
import org.recap.request.service.EmailService; | ||
import org.recap.util.PropertyUtil; | ||
|
||
import static org.junit.Assert.assertTrue; | ||
import static org.mockito.ArgumentMatchers.any; | ||
|
||
/** | ||
* Created by sudhishk on 19/1/17. | ||
|
@@ -38,4 +41,17 @@ public void testRecalEmail() { | |
emailService.sendEmail("", "PULTST54323", "RECAP","Message", "45678912", "",""); | ||
emailService.sendBulkRequestEmail("12","TestFirstBulkRequest","TestFirstBulkRequest","PROCESSED","Test",""); | ||
} | ||
|
||
@Test | ||
public void sendLASExceptionEmail(){ | ||
String customerCode = "PA"; | ||
String itemBarcode = "243533"; | ||
String messageDisplay = "success"; | ||
String patronBarcode = "3456784"; | ||
String toInstitution = "PUL"; | ||
String subject = "test"; | ||
Mockito.when(propertyUtil.getPropertyByInstitutionAndKey(any(), any())).thenReturn("[email protected]"); | ||
emailService.sendLASExceptionEmail(customerCode,itemBarcode,messageDisplay,patronBarcode,toInstitution,subject); | ||
|
||
} | ||
} |
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