◆ createTestLogoFile()
| File fr.softsf.canscan.CanScanUTest.createTestLogoFile |
( |
String | filename | ) |
throws IOException |
|
private |
◆ createTestLogoFileWithAlpha()
| File fr.softsf.canscan.CanScanUTest.createTestLogoFileWithAlpha |
( |
| ) |
throws IOException |
|
private |
◆ executeWithoutDialog()
| void fr.softsf.canscan.CanScanUTest.executeWithoutDialog |
( |
Runnable | test | ) |
|
|
private |
◆ givenAllBlankFields_whenBuildMecard_thenReturnEmptyString()
| void fr.softsf.canscan.CanScanUTest.givenAllBlankFields_whenBuildMecard_thenReturnEmptyString |
( |
| ) |
|
|
package |
◆ givenAllContactFields_whenBuildMecard_thenReturnCompleteMecardString()
| void fr.softsf.canscan.CanScanUTest.givenAllContactFields_whenBuildMecard_thenReturnCompleteMecardString |
( |
| ) |
|
|
package |
◆ givenBlackColor_whenConvertToHex_thenReturn000000()
| void fr.softsf.canscan.CanScanUTest.givenBlackColor_whenConvertToHex_thenReturn000000 |
( |
| ) |
|
|
package |
◆ givenBlackWhiteImage_whenDrawSquareFinderPattern_thenPatternDrawnAtOrigin()
| void fr.softsf.canscan.CanScanUTest.givenBlackWhiteImage_whenDrawSquareFinderPattern_thenPatternDrawnAtOrigin |
( |
| ) |
|
|
package |
◆ givenBlueColorSelected_whenChooseBgColor_thenButtonTextAndColorUpdated()
| void fr.softsf.canscan.CanScanUTest.givenBlueColorSelected_whenChooseBgColor_thenButtonTextAndColorUpdated |
( |
| ) |
|
|
package |
◆ givenColorDialogCancelled_whenChooseColor_thenButtonTextUnchanged()
| void fr.softsf.canscan.CanScanUTest.givenColorDialogCancelled_whenChooseColor_thenButtonTextUnchanged |
( |
| ) |
|
|
package |
◆ givenConfigWithCustomColors_whenGenerateQrCodeImage_thenReturn300x300Image()
| void fr.softsf.canscan.CanScanUTest.givenConfigWithCustomColors_whenGenerateQrCodeImage_thenReturn300x300Image |
( |
| ) |
throws Exception |
|
package |
◆ givenConfigWithLargeLogoRatio_whenGenerateQrCodeImage_thenReturnValidImage()
| void fr.softsf.canscan.CanScanUTest.givenConfigWithLargeLogoRatio_whenGenerateQrCodeImage_thenReturnValidImage |
( |
| ) |
throws Exception |
|
package |
◆ givenConfigWithoutLogo_whenGenerateQrCodeImage_thenReturn400x400Image()
| void fr.softsf.canscan.CanScanUTest.givenConfigWithoutLogo_whenGenerateQrCodeImage_thenReturn400x400Image |
( |
| ) |
throws Exception |
|
package |
◆ givenConfigWithRoundedModules_whenGenerateQrCodeImage_thenReturn400x400Image()
| void fr.softsf.canscan.CanScanUTest.givenConfigWithRoundedModules_whenGenerateQrCodeImage_thenReturn400x400Image |
( |
| ) |
throws Exception |
|
package |
◆ givenConfigWithZeroMargin_whenGenerateQrCodeImage_thenReturnValidImage()
| void fr.softsf.canscan.CanScanUTest.givenConfigWithZeroMargin_whenGenerateQrCodeImage_thenReturnValidImage |
( |
| ) |
throws Exception |
|
package |
◆ givenCustomColor_whenConvertToHex_thenReturnCorrectHex()
| void fr.softsf.canscan.CanScanUTest.givenCustomColor_whenConvertToHex_thenReturnCorrectHex |
( |
| ) |
|
|
package |
◆ givenDifferentImageRatios_whenDrawLogoIfPresent_thenLogoScaledCorrectly()
| void fr.softsf.canscan.CanScanUTest.givenDifferentImageRatios_whenDrawLogoIfPresent_thenLogoScaledCorrectly |
( |
double | ratio | ) |
throws Exception |
|
package |
◆ givenEmptyMecardFields_whenBuildQrData_thenReturnEmptyString()
| void fr.softsf.canscan.CanScanUTest.givenEmptyMecardFields_whenBuildQrData_thenReturnEmptyString |
( |
| ) |
|
|
package |
◆ givenFileSelected_whenBrowseLogo_thenLogoFieldUpdated()
| void fr.softsf.canscan.CanScanUTest.givenFileSelected_whenBrowseLogo_thenLogoFieldUpdated |
( |
| ) |
|
|
package |
◆ givenFileSelectionCancelled_whenBrowseLogo_thenLogoFieldUnchanged()
| void fr.softsf.canscan.CanScanUTest.givenFileSelectionCancelled_whenBrowseLogo_thenLogoFieldUnchanged |
( |
| ) |
|
|
package |
◆ givenFreeMode_whenGetModeText_thenReturnSaisieLibre()
| void fr.softsf.canscan.CanScanUTest.givenFreeMode_whenGetModeText_thenReturnSaisieLibre |
( |
| ) |
|
|
package |
◆ givenFreeMode_whenSwitchToMecardMode_thenCurrentModeIsMecard()
| void fr.softsf.canscan.CanScanUTest.givenFreeMode_whenSwitchToMecardMode_thenCurrentModeIsMecard |
( |
| ) |
|
|
package |
◆ givenFreeModeWithText_whenBuildQrData_thenReturnFreeText()
| void fr.softsf.canscan.CanScanUTest.givenFreeModeWithText_whenBuildQrData_thenReturnFreeText |
( |
| ) |
|
|
package |
◆ givenJPEGLogo_whenDrawLogoIfPresent_thenLogoDrawnSuccessfully()
| void fr.softsf.canscan.CanScanUTest.givenJPEGLogo_whenDrawLogoIfPresent_thenLogoDrawnSuccessfully |
( |
| ) |
throws Exception |
|
package |
◆ givenLargeQRSize_whenDrawLogoIfPresent_thenLogoScaledProperly()
| void fr.softsf.canscan.CanScanUTest.givenLargeQRSize_whenDrawLogoIfPresent_thenLogoScaledProperly |
( |
| ) |
throws Exception |
|
package |
◆ givenLogoWithTransparency_whenDrawLogoIfPresent_thenLogoDrawnWithAlpha()
| void fr.softsf.canscan.CanScanUTest.givenLogoWithTransparency_whenDrawLogoIfPresent_thenLogoDrawnWithAlpha |
( |
| ) |
throws Exception |
|
package |
◆ givenMarginAboveMaximum_whenMarginFieldCheck_thenGetMarginSetTo10()
| void fr.softsf.canscan.CanScanUTest.givenMarginAboveMaximum_whenMarginFieldCheck_thenGetMarginSetTo10 |
( |
| ) |
|
|
package |
◆ givenMecardMode_whenGetModeText_thenReturnContact()
| void fr.softsf.canscan.CanScanUTest.givenMecardMode_whenGetModeText_thenReturnContact |
( |
| ) |
|
|
package |
◆ givenMecardMode_whenSwitchToFreeMode_thenCurrentModeIsFree()
| void fr.softsf.canscan.CanScanUTest.givenMecardMode_whenSwitchToFreeMode_thenCurrentModeIsFree |
( |
| ) |
|
|
package |
◆ givenMecardModeWithContactData_whenBuildQrData_thenReturnMecardString()
| void fr.softsf.canscan.CanScanUTest.givenMecardModeWithContactData_whenBuildQrData_thenReturnMecardString |
( |
| ) |
|
|
package |
◆ givenNegativeMargin_whenMarginFieldCheck_thenGetMarginSetTo0()
| void fr.softsf.canscan.CanScanUTest.givenNegativeMargin_whenMarginFieldCheck_thenGetMarginSetTo0 |
( |
| ) |
|
|
package |
◆ givenNonExistentLogoFile_whenDrawLogoIfPresent_thenReturnWithoutException()
| void fr.softsf.canscan.CanScanUTest.givenNonExistentLogoFile_whenDrawLogoIfPresent_thenReturnWithoutException |
( |
| ) |
|
|
package |
◆ givenNullConfig_whenDrawLogoIfPresent_thenReturnWithoutException()
| void fr.softsf.canscan.CanScanUTest.givenNullConfig_whenDrawLogoIfPresent_thenReturnWithoutException |
( |
| ) |
|
|
package |
◆ givenNullGraphics_whenDrawLogoIfPresent_thenReturnWithoutException()
| void fr.softsf.canscan.CanScanUTest.givenNullGraphics_whenDrawLogoIfPresent_thenReturnWithoutException |
( |
| ) |
throws Exception |
|
package |
◆ givenNullLogoFile_whenDrawLogoIfPresent_thenReturnWithoutException()
| void fr.softsf.canscan.CanScanUTest.givenNullLogoFile_whenDrawLogoIfPresent_thenReturnWithoutException |
( |
| ) |
|
|
package |
◆ givenOnlyNameField_whenBuildMecard_thenReturnMecardWithNameOnly()
| void fr.softsf.canscan.CanScanUTest.givenOnlyNameField_whenBuildMecard_thenReturnMecardWithNameOnly |
( |
| ) |
|
|
package |
◆ givenQrImage_whenDrawFinderPatterns_thenAllThreePatternsDrawn()
| void fr.softsf.canscan.CanScanUTest.givenQrImage_whenDrawFinderPatterns_thenAllThreePatternsDrawn |
( |
| ) |
|
|
package |
◆ givenRatioPercent_whenRatioFieldCheck_thenGetRatioSetCorrectly()
| void fr.softsf.canscan.CanScanUTest.givenRatioPercent_whenRatioFieldCheck_thenGetRatioSetCorrectly |
( |
int | sliderValue, |
|
|
double | expectedRatio ) |
|
package |
◆ givenRedColorSelected_whenChooseQrColor_thenButtonTextAndColorUpdated()
| void fr.softsf.canscan.CanScanUTest.givenRedColorSelected_whenChooseQrColor_thenButtonTextAndColorUpdated |
( |
| ) |
|
|
package |
◆ givenSmallQRSize_whenDrawLogoIfPresent_thenLogoScaledProperly()
| void fr.softsf.canscan.CanScanUTest.givenSmallQRSize_whenDrawLogoIfPresent_thenLogoScaledProperly |
( |
| ) |
throws Exception |
|
package |
◆ givenValidLogo_whenDrawLogoIfPresent_thenLogoCenteredCorrectly()
| void fr.softsf.canscan.CanScanUTest.givenValidLogo_whenDrawLogoIfPresent_thenLogoCenteredCorrectly |
( |
| ) |
throws Exception |
|
package |
◆ givenValidLogo_whenDrawLogoIfPresent_thenLogoDrawnOnImage()
| void fr.softsf.canscan.CanScanUTest.givenValidLogo_whenDrawLogoIfPresent_thenLogoDrawnOnImage |
( |
| ) |
throws Exception |
|
package |
◆ givenValidMargin4_whenMarginFieldCheck_thenGetMarginUpdatedTo4()
| void fr.softsf.canscan.CanScanUTest.givenValidMargin4_whenMarginFieldCheck_thenGetMarginUpdatedTo4 |
( |
| ) |
|
|
package |
◆ givenVariousSizeInputs_whenValidateAndGetSize_thenReturnExpectedResult()
| void fr.softsf.canscan.CanScanUTest.givenVariousSizeInputs_whenValidateAndGetSize_thenReturnExpectedResult |
( |
String | input, |
|
|
int | expected ) |
|
package |
◆ givenWhiteColor_whenConvertToHex_thenReturnFFFFFF()
| void fr.softsf.canscan.CanScanUTest.givenWhiteColor_whenConvertToHex_thenReturnFFFFFF |
( |
| ) |
|
|
package |
◆ givenZeroImageRatio_whenDrawLogoIfPresent_thenReturnWithoutException()
| void fr.softsf.canscan.CanScanUTest.givenZeroImageRatio_whenDrawLogoIfPresent_thenReturnWithoutException |
( |
| ) |
throws Exception |
|
package |
◆ setUp()
| void fr.softsf.canscan.CanScanUTest.setUp |
( |
| ) |
|
|
package |
◆ colorOperation
◆ generator
| CanScan fr.softsf.canscan.CanScanUTest.generator |
|
private |
◆ tempDir
| File fr.softsf.canscan.CanScanUTest.tempDir |
|
package |
The documentation for this class was generated from the following file: