You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kr...@apache.org on 2011/12/27 23:32:43 UTC
svn commit: r1225036 - in
/maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-813-wrong-testCount:
./ pom.xml src/ src/test/ src/test/java/ src/test/java/Test6.java
Author: krosenvold
Date: Tue Dec 27 22:32:43 2011
New Revision: 1225036
URL: http://svn.apache.org/viewvc?rev=1225036&view=rev
Log:
[SUREFIRE-813] Added test project
Submitted by nkeyval
Added:
maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-813-wrong-testCount/
maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-813-wrong-testCount/pom.xml (with props)
maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-813-wrong-testCount/src/
maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-813-wrong-testCount/src/test/
maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-813-wrong-testCount/src/test/java/
maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-813-wrong-testCount/src/test/java/Test6.java (with props)
Added: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-813-wrong-testCount/pom.xml
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-813-wrong-testCount/pom.xml?rev=1225036&view=auto
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-813-wrong-testCount/pom.xml (added)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-813-wrong-testCount/pom.xml Tue Dec 27 22:32:43 2011
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>surefirebug</groupId>
+ <artifactId>surefirebug</artifactId>
+ <version>1.0</version>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>${surefire.version}</version>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.surefire</groupId>
+ <artifactId>surefire-junit47</artifactId>
+ <version>${surefire.version}</version>
+ </dependency>
+ </dependencies>
+
+ <configuration>
+ <forkMode>always</forkMode>
+ <redirectTestOutputToFile>true
+ </redirectTestOutputToFile>
+ <test>Test6</test>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <properties>
+ <surefire.version>2.11</surefire.version>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.10</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
Propchange: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-813-wrong-testCount/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-813-wrong-testCount/src/test/java/Test6.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-813-wrong-testCount/src/test/java/Test6.java?rev=1225036&view=auto
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-813-wrong-testCount/src/test/java/Test6.java (added)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-813-wrong-testCount/src/test/java/Test6.java Tue Dec 27 22:32:43 2011
@@ -0,0 +1,32 @@
+import org.junit.*;
+
+public class Test6 {
+ @Test
+ public void test61() throws Exception {
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ aPrint(); // Does not fail if we call to sPrint() instead of aPrint() here
+ }
+
+ private static final String s = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
+
+ public static void sPrint(){
+ for (int i=0; i<1000; ++i){ // Increase this number if it does no fail
+ System.out.println(i+":"+s);
+ //System.err.println(i+":"+s); //Fails as well is you print in err instead of out
+ }
+ }
+
+ public static void aPrint() {
+ new MyThread().start();
+ }
+
+ private static class MyThread extends Thread {
+ @Override
+ public void run() {
+ sPrint();
+ }
+ }
+}
Propchange: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-813-wrong-testCount/src/test/java/Test6.java
------------------------------------------------------------------------------
svn:eol-style = native