mirror of
https://github.com/anthonyraymond/joal.git
synced 2024-09-20 15:26:25 +08:00
Excluded some class from jaCoCo coverage
This commit is contained in:
parent
09211eeba6
commit
9d013cc016
8
pom.xml
8
pom.xml
|
@ -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>
|
||||
|
|
22
src/test/java/org/araymond/joal/conf/SpringConfTest.java
Normal file
22
src/test/java/org/araymond/joal/conf/SpringConfTest.java
Normal 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");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue