|
|
|
@@ -8,10 +8,11 @@ import org.junit.jupiter.api.Test |
|
|
|
class OnPackExpiryZipStemTest { |
|
|
|
|
|
|
|
@Test |
|
|
|
fun expiry_file_stem_suffixes_only_when_item_has_more_than_one_job() { |
|
|
|
fun expiry_file_stem_suffixes_from_second_job_only() { |
|
|
|
assertEquals("pp2211", PlasticBagPrinterService.onPackExpiryFileStem("pp2211", 1, 1)) |
|
|
|
assertEquals("pp2211-1", PlasticBagPrinterService.onPackExpiryFileStem("pp2211", 1, 2)) |
|
|
|
assertEquals("pp2211", PlasticBagPrinterService.onPackExpiryFileStem("pp2211", 1, 2)) |
|
|
|
assertEquals("pp2211-2", PlasticBagPrinterService.onPackExpiryFileStem("pp2211", 2, 2)) |
|
|
|
assertEquals("pp2211-3", PlasticBagPrinterService.onPackExpiryFileStem("pp2211", 3, 3)) |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
|