[MNG-6427] IT for MNG-1957 fails on Java 11+

This commit is contained in:
Sylwester Lachiewicz 2018-11-07 23:43:32 +01:00
parent 7076be8758
commit fb64340087
2 changed files with 12 additions and 2 deletions

View File

@ -59,8 +59,8 @@ public class MavenITmng1957JdkActivationWithVersionRangeTest
assertEquals( "PASSED", props.getProperty( "project.properties.jdkProperty1" ) ); assertEquals( "PASSED", props.getProperty( "project.properties.jdkProperty1" ) );
assertEquals( "PASSED", props.getProperty( "project.properties.jdkProperty2" ) ); assertEquals( "PASSED", props.getProperty( "project.properties.jdkProperty2" ) );
assertEquals( "PASSED", props.getProperty( "project.properties.jdkProperty3" ) ); assertEquals( "PASSED", props.getProperty( "project.properties.jdkProperty3" ) );
assertEquals( null, props.getProperty( "project.properties.jdkProperty4" ) ); assertNull( props.getProperty( "project.properties.jdkProperty4" ) );
assertEquals( null, props.getProperty( "project.properties.jdkProperty5" ) ); assertNull( props.getProperty( "project.properties.jdkProperty5" ) );
assertEquals( "PASSED", props.getProperty( "project.properties.jdkProperty6" ) ); assertEquals( "PASSED", props.getProperty( "project.properties.jdkProperty6" ) );
} }

View File

@ -176,5 +176,15 @@ under the License.
<jdkProperty6>PASSED</jdkProperty6> <jdkProperty6>PASSED</jdkProperty6>
</properties> </properties>
</profile> </profile>
<profile>
<!-- bounds close to current Java version (MNG-4512) -->
<id>test-6h</id>
<activation>
<jdk>[11,12)</jdk>
</activation>
<properties>
<jdkProperty6>PASSED</jdkProperty6>
</properties>
</profile>
</profiles> </profiles>
</project> </project>