Excluded some class from jaCoCo coverage

This commit is contained in:
anthonyraymond 2018-03-29 00:14:14 +02:00
parent 09211eeba6
commit 9d013cc016
2 changed files with 30 additions and 0 deletions

View file

@ -212,6 +212,14 @@
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.plugin.version}</version>
<configuration>
<excludes>
<exclude>org/araymond/joal/JackOfAllTradesApplication.class</exclude>
<exclude>org/araymond/joal/ApplicationReadyListener.class</exclude>
<exclude>org/araymond/joal/ApplicationClosingListener.class</exclude>
<exclude>org/araymond/joal/web/config/</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>prepare-agent</id>

View file

@ -0,0 +1,22 @@
package org.araymond.joal.conf;
import org.junit.Test;
import org.springframework.core.task.TaskExecutor;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.fail;
public class SpringConfTest {
@Test
public void shouldCreateExecutor() {
final SpringConf springConf = new SpringConf();
try {
final TaskExecutor taskExecutor = springConf.taskExecutor();
} catch (final Exception e) {
fail("should not have failed");
}
}
}