Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
rmpestano committed Sep 14, 2016
1 parent 42cbe43 commit 9196c04
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
23 changes: 23 additions & 0 deletions core/src/test/java/com/github/dbunit/rules/DataSetExecutorIt.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,27 @@ public void shouldLoadUsersFromXmlDataset() {
assertThat(user.getFollowers()).contains(expectedFollower);
}


@Test
public void shouldNotCreateDataSetWithoutConnection(){
DataSetExecutorImpl executor = DataSetExecutorImpl.instance(new ConnectionHolderImpl(null));
try{
executor.createDataSet(new DataSetConfig("test-dataset"));
}catch (DataBaseSeedingException e){
assertThat(e.getMessage()).isEqualTo("Could not initialize dataset: test-dataset");
}

}

@Test
public void shouldNotCreateExecutiorWithoutConnection(){
try{
DataSetExecutorImpl executor = DataSetExecutorImpl.instance(null);
}catch (RuntimeException e){
assertThat(e.getMessage()).isEqualTo("Invalid connection");
}

}


}
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,15 @@
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<configuration>
<!-- basically excludes classes from examples projects-->
<excludes>
<exclude>**/*Repository.*</exclude>
<exclude>**/Q*</exclude>
<exclude>**/*Service.*</exclude>
<exclude>**/*User.*</exclude>
<exclude>**/*UserRepository.*</exclude>
<exclude>**/*UserController.*</exclude>
<exclude>**/*Application.*</exclude>
<exclude>**/*UserRepositoryTest.*</exclude>
<exclude>**/*Contact*</exclude>
<exclude>**/*Company*</exclude>
Expand Down

0 comments on commit 9196c04

Please sign in to comment.