You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2016/05/30 03:45:49 UTC
maven-surefire git commit: investigating
Repository: maven-surefire
Updated Branches:
refs/heads/master ff131fa00 -> ce3bdd506
investigating
Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/ce3bdd50
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/ce3bdd50
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/ce3bdd50
Branch: refs/heads/master
Commit: ce3bdd50678c1e83efe55a1f243631dedac01921
Parents: ff131fa
Author: Tibor17 <ti...@lycos.com>
Authored: Mon May 30 05:45:40 2016 +0200
Committer: Tibor17 <ti...@lycos.com>
Committed: Mon May 30 05:45:40 2016 +0200
----------------------------------------------------------------------
.../apache/maven/surefire/its/jiras/Surefire1211JUnitTestNgIT.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/ce3bdd50/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1211JUnitTestNgIT.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1211JUnitTestNgIT.java b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1211JUnitTestNgIT.java
index 29c7282..a7cd803 100644
--- a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1211JUnitTestNgIT.java
+++ b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire1211JUnitTestNgIT.java
@@ -1 +1 @@
-package org.apache.maven.surefire.its.jiras;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
import org.apache.maven.surefire.its.fixture.SurefireLauncher
;
import org.junit.Test;
import static java.lang.System.getProperty;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.is;
import static org.junit.Assume.assumeThat;
/**
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
* @see {@linkplain https://jira.codehaus.org/browse/SUREFIRE-1211}
* @since 2.19.1
*/
public class Surefire1211JUnitTestNgIT
extends SurefireJUnit4IntegrationTestCase
{
@Test
public void withJUnit()
{
System.out.println( "java.specification.version: " + getProperty( "java.specification.version" ) );
assumeThat( "java.specification.version: ",
getProperty( "java.specification.version" ), is( greaterThanOrEqualTo( "1.7" ) ) );
unpack().threadCount( 1 )
.executeTest()
.verifyErrorFree( 2 );
}
@Test
public void withoutJUnit()
{
assumeThat( "java.specification.version: "
,
getProperty( "java.specification.version" ), is( greaterThanOrEqualTo( "1.7" ) ) );
unpack().threadCount( 1 )
.sysProp( "junit", "false" )
.executeTest()
.verifyErrorFree( 1 );
}
private SurefireLauncher unpack()
{
return unpack( "surefire-1211" );
}
}
\ No newline at end of file
+package org.apache.maven.surefire.its.jiras;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
import org.apache.maven.surefire.its.fixture.SurefireLauncher
;
import org.junit.Before;
import org.junit.Test;
import static java.lang.System.getProperty;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
import static org.hamcrest.Matchers.is;
import static org.junit.Assume.assumeThat;
/**
* @author <a href="mailto:tibordigana@apache.org">Tibor Digana (tibor17)</a>
* @see {@linkplain https://jira.codehaus.org/browse/SUREFIRE-1211}
* @since 2.19.1
*/
public class Surefire1211JUnitTestNgIT
extends SurefireJUnit4IntegrationTestCase
{
@Before
public void before() {
System.out.println( "java.specification.version: " + getProperty( "java.specification.version" ) );
System.err.println( "java.specification.version: " + getProperty( "java.specification.version" ) );
}
@Test
public void withJUnit()
{
System.out.println( "java.specification.version: " + getProperty( "java.specification.version" ) );
assumeThat( "java.specification.version: ",
getPro
perty( "java.specification.version" ), is( greaterThanOrEqualTo( "1.7" ) ) );
unpack().threadCount( 1 )
.executeTest()
.verifyErrorFree( 2 );
}
@Test
public void withoutJUnit()
{
assumeThat( "java.specification.version: ",
getProperty( "java.specification.version" ), is( greaterThanOrEqualTo( "1.7" ) ) );
unpack().threadCount( 1 )
.sysProp( "junit", "false" )
.executeTest()
.verifyErrorFree( 1 );
}
private SurefireLauncher unpack()
{
return unpack( "surefire-1211" );
}
}
\ No newline at end of file