package ru.job4j.parser;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.assertTrue;

/**
 * Class ParserVacanciesTest.
 *
 * @author Ponkin Aleksey
 * @version 1.0.0
 * @since 03.05.2018.
 */
public class ParserVacanciesTest {
    ParserVacancies parser;

    @Before
    public void before() {
        parser = new ParserVacancies();
    }

    /**
     * Test when parse vacancy then check vacancy in database.
     */
    @Test
    public void whenParseVacancyThenCheckDatabase() {
        parser.parse();
        assertTrue(parser.getAllVacancy().size() > 0);
    }

    /**
     *
     * Test when start program Parser vacancy then finish program.
     */
    @Test
    public void whenStartProgramThenFinishProgram() {
        parser.start();
        parser.finish();
    }

    @After
    public void after() {
        parser.eraseDb();
    }
}
@@ -96,52 +96,8 @@
 t;%0A%0A
-import static org.junit.Assert.assertTrue;%0A%0A
 /**%0A
@@ -353,237 +353,8 @@
  %7D%0A%0A
-    /**%0A     * Test when parse vacancy then check vacancy in database.%0A     */%0A    @Test%0A    public void whenParseVacancyThenCheckDatabase() %7B%0A        parser.parse();%0A        assertTrue(parser.getAllVacancy().size() %3E 0);%0A    %7D%0A%0A
     

Fix build failing Travis CI.[#1731]