src/test/java/edu/ucla/library/bucketeer/JobFactoryTest.java
@Test
    public final void testFailedMissingCount() throws ProcessingException, IOException {
        final String iiifURL = "unit.test.com";
        final String slackUserHandle = "fake.user";
        final long expectedFailed = 2;
        final long expectedMissing = 1;
        final Job job = JobFactory.getInstance().createJob(TEST_JOB_NAME, MISSING_FAILED_FILE);
        final String slackMessage =
                LOGGER.getMessage(MessageCodes.BUCKETEER_111, slackUserHandle, job.size(),
                                  job.failedItems(), job.missingItems(), iiifURL);

        assertEquals(expectedFailed, job.failedItems());
        assertEquals(expectedMissing, job.missingItems());
        assertTrue(slackMessage.contains("2 failed"));
        assertTrue(slackMessage.contains("1 missing images"));
    }
/**
     * Test JobFactory records failed/missing images.
     */
Test JobFactory records failed/missing images.
Test JobFactory records failed / missing images .
@Test
    public final void testFailedMissingCount() throws ProcessingException, IOException {
        final String iiifURL = "unit.test.com";
        final String slackUserHandle = "fake.user";
        final long expectedFailed = 2;
        final long expectedMissing = 1;
        final Job job = JobFactory.getInstance().createJob(TEST_JOB_NAME, MISSING_FAILED_FILE);
        final String slackMessage =
                LOGGER.getMessage(MessageCodes.BUCKETEER_111, slackUserHandle, job.size(),
                                  job.failedItems(), job.missingItems(), iiifURL);
        assertEquals(expectedFailed, job.failedItems());
        assertEquals(expectedMissing, job.missingItems());
        assertTrue(slackMessage.contains("2 failed"));
        assertTrue(slackMessage.contains("1 missing images"));
    }
@ Test public final void testFailedMissingCount ( ) throws ProcessingException , IOException { final String iiifURL = "unit.test.com" ; final String slackUserHandle = "fake.user" ; final long expectedFailed = 2 ; final long expectedMissing = 1 ; final Job job = JobFactory . getInstance ( ) . createJob ( TEST_JOB_NAME , MISSING_FAILED_FILE ) ; final String slackMessage = LOGGER . getMessage ( MessageCodes . BUCKETEER_111 , slackUserHandle , job . size ( ) , job . failedItems ( ) , job . missingItems ( ) , iiifURL ) ; assertEquals ( expectedFailed , job . failedItems ( ) ) ; assertEquals ( expectedMissing , job . missingItems ( ) ) ; assertTrue ( slackMessage . contains ( "2 failed" ) ) ; assertTrue ( slackMessage . contains ( "1 missing images" ) ) ; }
Test JobFactory records failed/missing images.
Test JobFactory records failed / missing images .