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
package com.giovanetti.sample.batch.job; | |
import com.giovanetti.sample.batch.configuration.JobExtractionTestConfiguration; | |
import com.giovanetti.sample.batch.item.User; | |
import com.giovanetti.support.batch.rule.BatchProperties; | |
import com.giovanetti.support.batch.template.ItemWriterTemplate; | |
import org.junit.ClassRule; | |
import org.junit.Test; | |
import org.junit.rules.TemporaryFolder; | |
import org.junit.runner.RunWith; |
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
package com.giovanetti.sample.batch.job; | |
import com.giovanetti.sample.batch.configuration.JobExtractionTestConfiguration; | |
import com.giovanetti.sample.batch.item.User; | |
import com.giovanetti.support.batch.rule.BatchProperties; | |
import com.giovanetti.support.batch.rule.DBUnitRule; | |
import com.giovanetti.support.batch.template.ItemReaderTemplate; | |
import org.junit.ClassRule; | |
import org.junit.Rule; | |
import org.junit.Test; |
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
package com.giovanetti.sample.batch.job; | |
import com.giovanetti.sample.batch.configuration.JobExtractionTestConfiguration; | |
import com.giovanetti.support.batch.ExternalConfiguration; | |
import com.giovanetti.support.batch.rule.BatchProperties; | |
import com.giovanetti.support.batch.rule.DBUnitRule; | |
import com.google.common.collect.Iterables; | |
import org.junit.ClassRule; | |
import org.junit.Rule; | |
import org.junit.Test; |
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
Feature: batch extraction+ | |
Scenario: scenario 1 | |
Given les utilisateurs | |
|Id|Nom|Prenom| | |
|1|nom1|prenom1| | |
|2|nom2|prenom2| | |
When je charge les utilisateurs en base de données | |
And j'execute le job d'extraction | |
Then mon fichier de sortie contient les lignes | |
|1,prenom1,nom1| |
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
package com.giovanetti.sample.batch.job.cucumber; | |
import com.giovanetti.sample.batch.configuration.JobExtractionTestConfiguration; | |
import com.giovanetti.sample.batch.item.User; | |
import com.giovanetti.sample.batch.job.JobExtractionConfiguration; | |
import com.giovanetti.support.batch.annotations.FunctionalDataSource; | |
import com.ninja_squad.dbsetup.DbSetup; | |
import com.ninja_squad.dbsetup.destination.DataSourceDestination; | |
import com.ninja_squad.dbsetup.operation.Insert; |
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
package com.giovanetti.sample.batch.job.cucumber; | |
import com.giovanetti.support.batch.rule.BatchProperties; | |
import cucumber.api.CucumberOptions; | |
import cucumber.api.junit.Cucumber; | |
import org.junit.BeforeClass; | |
import org.junit.runner.RunWith; | |
@RunWith(Cucumber.class) | |
@CucumberOptions(format = {"pretty", "html:target/cucumber-report"}, |
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
package com.giovanetti.sample.batch.job; | |
import com.giovanetti.support.batch.annotations.TechnicalDataSource; | |
import com.giovanetti.support.batch.function.Consumer; | |
import com.giovanetti.support.batch.function.Function; | |
import org.springframework.batch.core.explore.JobExplorer; | |
import org.springframework.batch.core.explore.support.JobExplorerFactoryBean; | |
import org.springframework.batch.core.launch.JobLauncher; | |
import org.springframework.beans.factory.FactoryBean; | |
import org.springframework.beans.factory.annotation.Value; |
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
package com.giovanetti.sample.batch.job; | |
import com.giovanetti.support.batch.configuration.GenericTestConfiguration; | |
import com.giovanetti.support.batch.rule.BatchProperties; | |
import org.junit.Before; | |
import org.junit.ClassRule; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import org.junit.contrib.java.lang.system.ExpectedSystemExit; | |
import org.junit.contrib.java.lang.system.ProvideSystemProperty; |
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
package com.giovanetti.sample.batch.job; | |
import com.giovanetti.support.batch.configuration.GenericTestConfiguration; | |
import com.giovanetti.support.batch.rule.BatchProperties; | |
import org.junit.Before; | |
import org.junit.ClassRule; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import org.junit.contrib.java.lang.system.ExpectedSystemExit; | |
import org.junit.contrib.java.lang.system.ProvideSystemProperty; |
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
package com.giovanetti; | |
import org.junit.Before; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.boot.test.IntegrationTest; | |
import org.springframework.boot.test.SpringApplicationConfiguration; | |
import org.springframework.boot.test.TestRestTemplate; | |
import org.springframework.http.HttpStatus; |
OlderNewer