Permalink
Browse files

Mavenized build

  • Loading branch information...
1 parent 2a8d5a4 commit 6dc61b0a0a42fae01fe3e167e600c2856c6df1c2 @MSch committed Aug 25, 2009
View
@@ -0,0 +1,12 @@
+*.class
+*~
+.*.swp
+.*.swo
+.loadpath
+.buildpath
+.project
+.classpath
+target
+.settings
+nbproject
+.DS_Store
View
145 pom.xml
@@ -0,0 +1,145 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>edu.umd.cs.mtc</groupId>
+ <artifactId>multithreadedtc</artifactId>
+ <version>1.01-junit4</version>
+ <name>MultithreadedTC</name>
+ <url>http://code.google.com/p/multithreadedtc-junit4/</url>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.6</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <configuration>
+ <downloadSources>true</downloadSources>
+ <downloadJavadocs>false</downloadJavadocs>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.3</version>
+ <configuration>
+ <argLine>-Xmn1024m</argLine>
+ <printSummary>true</printSummary>
+ <reportFormat>plain</reportFormat>
+ <forkMode>pertest</forkMode>
+ <failIfNoTests>false</failIfNoTests>
+ <testFailureIgnore>true</testFailureIgnore>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-report-plugin
+ </artifactId>
+ <configuration>
+ <linkXRef>true</linkXRef>
+ <!-- only show failure: -->
+ <showSuccess>false</showSuccess>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>jxr-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <artifactId>maven-checkstyle-plugin
+ </artifactId>
+ <configuration>
+ <!--<configLocation>XVSM_Checkstyle.xml</configLocation>-->
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <doclet>
+ gr.spinellis.umlgraph.doclet.UmlGraphDoc
+ </doclet>
+ <docletArtifact>
+ <groupId>gr.spinellis</groupId>
+ <artifactId>UmlGraph</artifactId>
+ <version>4.4</version>
+ </docletArtifact>
+ <additionalparam>
+ -qualify -inferrel -quiet -hide java.*
+ -postfixpackage -nodefontsize 9
+ -nodefontpackagesize 7
+ </additionalparam>
+ <destDir>docs/api</destDir>
+ <jarOutputDirectory>
+ target/site/download
+ </jarOutputDirectory>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>taglist-maven-plugin</artifactId>
+ <configuration>
+ <tags>
+ <tag>TODO</tag>
+ <tag>FIXME</tag>
+ <tag>OPTIMIZE</tag>
+ <tag>@deprecated</tag>
+ </tags>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin
+ </artifactId>
+ <configuration>
+ <executions>
+ <execution>
+ <id>clean</id>
+ <goals>
+ <goal>clean</goal>
+ </goals>
+ </execution>
+ </executions>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <version>1.2</version>
+ </plugin>
+ </plugins>
+ </reporting>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+</project>
+
@@ -1,36 +0,0 @@
-package edu.umd.cs.mtc;
-
-import org.junit.runners.BlockJUnit4ClassRunner;
-import org.junit.runners.model.FrameworkMethod;
-import org.junit.runners.model.InitializationError;
-import org.junit.runners.model.Statement;
-
-/**
- * A junit runner which runs the threaded methods before the actual junit test method.
- *
- * @author <a href="mailto:jvb@newtec.eu">Jan Van Besien</a>
- */
-public class MultiThreadedRunner extends BlockJUnit4ClassRunner
-{
- /**
- * Creates a BlockJUnit4ClassRunner to run {@code klass}
- *
- * @throws org.junit.runners.model.InitializationError
- * if the test class is malformed.
- */
- public MultiThreadedRunner(Class<?> klass)
- throws InitializationError
- {
- super(klass);
- }
-
- @Override
- protected Statement methodInvoker(FrameworkMethod method, Object test)
- {
- final MultithreadedTest multithreadedTestAnnotation = method.getAnnotation(MultithreadedTest.class);
- if (multithreadedTestAnnotation != null)
- return new RunThreadsThenInvokeMethod(method, test, multithreadedTestAnnotation.times());
- else
- return new RunThreadsThenInvokeMethod(method, test, 1);
- }
-}
Oops, something went wrong.

0 comments on commit 6dc61b0

Please sign in to comment.