Skip to content
Snippets Groups Projects
Commit 9ca2377d authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

added cobertura

parent 822082df
No related branches found
No related tags found
No related merge requests found
...@@ -117,7 +117,25 @@ ...@@ -117,7 +117,25 @@
<build> <build>
<plugins> <plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.6</version>
<configuration>
<instrumentation>
<excludes>
<exclude>src/performancetest/**/*</exclude>
</excludes>
</instrumentation>
</configuration>
<executions>
<execution>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- we want JDK 1.6 source and binary compatibility --> <!-- we want JDK 1.6 source and binary compatibility -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
...@@ -363,9 +381,27 @@ ...@@ -363,9 +381,27 @@
<artifactId>maven-pmd-plugin</artifactId> <artifactId>maven-pmd-plugin</artifactId>
<version>3.2</version> <version>3.2</version>
</plugin> </plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>emma-maven-plugin</artifactId>
<version>1.0-alpha-3</version>
<inherited>true</inherited>
<configuration>
<includes>
<include>src/main/java/**</include>
<include>src/test/java/**</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.6</version>
</plugin>
</plugins> </plugins>
</reporting> </reporting>
<profiles> <profiles>
<profile> <profile>
<id>performancetest</id> <id>performancetest</id>
......
...@@ -18,13 +18,13 @@ package teetime.framework; ...@@ -18,13 +18,13 @@ package teetime.framework;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
abstract class RunnableStage implements Runnable { abstract class AbstractRunnableStage implements Runnable {
protected final Stage stage; protected final Stage stage;
@SuppressWarnings("PMD.LoggerIsNotStaticFinal") @SuppressWarnings("PMD.LoggerIsNotStaticFinal")
protected final Logger logger; protected final Logger logger;
public RunnableStage(final Stage stage) { public AbstractRunnableStage(final Stage stage) {
this.stage = stage; this.stage = stage;
this.logger = LoggerFactory.getLogger(stage.getClass()); this.logger = LoggerFactory.getLogger(stage.getClass());
} }
......
...@@ -22,13 +22,13 @@ import teetime.framework.idle.YieldStrategy; ...@@ -22,13 +22,13 @@ import teetime.framework.idle.YieldStrategy;
import teetime.framework.pipe.IPipe; import teetime.framework.pipe.IPipe;
import teetime.framework.signal.ISignal; import teetime.framework.signal.ISignal;
final class RunnableConsumerStage extends RunnableStage { final class RunnableConsumerStage extends AbstractRunnableStage {
private final IdleStrategy idleStrategy; private final IdleStrategy idleStrategy;
/** /**
* Creates a new instance with the {@link YieldStrategy} as default idle strategy. * Creates a new instance with the {@link YieldStrategy} as default idle strategy.
* *
* @param stage * @param stage
* to execute within an own thread * to execute within an own thread
*/ */
......
...@@ -18,7 +18,7 @@ package teetime.framework; ...@@ -18,7 +18,7 @@ package teetime.framework;
import teetime.framework.signal.StartingSignal; import teetime.framework.signal.StartingSignal;
import teetime.framework.signal.TerminatingSignal; import teetime.framework.signal.TerminatingSignal;
public final class RunnableProducerStage extends RunnableStage { public final class RunnableProducerStage extends AbstractRunnableStage {
public RunnableProducerStage(final Stage stage) { public RunnableProducerStage(final Stage stage) {
super(stage); super(stage);
......
...@@ -42,7 +42,7 @@ public abstract class Stage { ...@@ -42,7 +42,7 @@ public abstract class Stage {
@SuppressWarnings("PMD.LoggerIsNotStaticFinal") @SuppressWarnings("PMD.LoggerIsNotStaticFinal")
protected final Logger logger; protected final Logger logger;
/** The owning thread of this stage if this stage is directly executed by a {@link RunnableStage}, <code>null</code> otherwise. */ /** The owning thread of this stage if this stage is directly executed by a {@link AbstractRunnableStage}, <code>null</code> otherwise. */
protected Thread owningThread; protected Thread owningThread;
protected Stage() { protected Stage() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment