maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krosenv...@apache.org
Subject svn commit: r1228944 - in /maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader: ./ pom.xml src/ src/test/ src/test/java/ src/test/java/surefire812/ src/test/java/surefire812/TestLogging.java
Date Sun, 08 Jan 2012 20:32:54 GMT
Author: krosenvold
Date: Sun Jan  8 20:32:53 2012
New Revision: 1228944

URL: http://svn.apache.org/viewvc?rev=1228944&view=rev
Log:
[SUREFIRE-812] Added testcase, unable to reproduce

Added:
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader/
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader/pom.xml
  (with props)
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader/src/
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader/src/test/
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader/src/test/java/
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader/src/test/java/surefire812/
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader/src/test/java/surefire812/TestLogging.java
  (with props)

Added: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader/pom.xml
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader/pom.xml?rev=1228944&view=auto
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader/pom.xml
(added)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader/pom.xml
Sun Jan  8 20:32:53 2012
@@ -0,0 +1,47 @@
+<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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven.plugins.surefire</groupId>
+  <artifactId>log4jClassloader</artifactId>
+  <name>surefire-812-log4j-classloader</name>
+  <version>1.0.0-SNAPSHOT</version>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <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-surefire-plugin</artifactId>
+        <version>${surefire.version}</version>
+        <configuration>
+          <useManifestOnlyJar>false</useManifestOnlyJar>
+          <forkMode>always</forkMode>
+          <redirectTestOutputToFile>true</redirectTestOutputToFile>
+          <systemPropertyVariables>
+            <java.awt.headless>true</java.awt.headless>
+          </systemPropertyVariables>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.8.2</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>log4j</groupId>
+      <artifactId>log4j</artifactId>
+      <version>1.2.16</version>
+    </dependency>
+  </dependencies>
+</project>

Propchange: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader/src/test/java/surefire812/TestLogging.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader/src/test/java/surefire812/TestLogging.java?rev=1228944&view=auto
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader/src/test/java/surefire812/TestLogging.java
(added)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader/src/test/java/surefire812/TestLogging.java
Sun Jan  8 20:32:53 2012
@@ -0,0 +1,15 @@
+package surefire812;
+
+import org.apache.log4j.Logger;
+
+public class TestLogging
+{
+    static {
+        Logger.getLogger( TestLogging.class ).debug( "fud");
+    }
+
+    public void testCanLogAMessage()
+    {
+        Logger.getLogger( TestLogging.class ).warn( "hey you" );
+    }
+}

Propchange: maven/surefire/trunk/surefire-integration-tests/src/test/resources/surefire-812-log4j-classloader/src/test/java/surefire812/TestLogging.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message