Add TestGroup.CUSTOM_COMPILATION
Previously building with JDK > 1.8 b88 caused test failures due to errors with custom compilers like Jibx and Jasper reports. This commit adds a new TestGroup named CUSTOM_COMPILATION that allows the CI server to continue to run these tests but allow committers to ignore these tests.
This commit is contained in:
@@ -20,11 +20,13 @@ import java.io.StringWriter;
|
||||
import javax.xml.transform.stream.StreamResult;
|
||||
|
||||
import org.custommonkey.xmlunit.XMLUnit;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.oxm.AbstractMarshallerTests;
|
||||
import org.springframework.oxm.Marshaller;
|
||||
import org.springframework.tests.Assume;
|
||||
import org.springframework.tests.TestGroup;
|
||||
|
||||
import static org.custommonkey.xmlunit.XMLAssert.*;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
@@ -36,9 +38,13 @@ import static org.junit.Assert.assertTrue;
|
||||
* NOTE: These tests fail under Eclipse/IDEA because JiBX binding does
|
||||
* not occur by default. The Gradle build should succeed, however.
|
||||
*/
|
||||
@Ignore("INCOMPATIBLE WITH OPENJDK 8 b89+")
|
||||
public class JibxMarshallerTests extends AbstractMarshallerTests {
|
||||
|
||||
@BeforeClass
|
||||
public static void compilerAssumptions() {
|
||||
Assume.group(TestGroup.CUSTOM_COMPILATION);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Marshaller createMarshaller() throws Exception {
|
||||
JibxMarshaller marshaller = new JibxMarshaller();
|
||||
|
||||
@@ -20,10 +20,13 @@ import java.io.ByteArrayInputStream;
|
||||
|
||||
import javax.xml.transform.stream.StreamSource;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.springframework.oxm.AbstractUnmarshallerTests;
|
||||
import org.springframework.oxm.Unmarshaller;
|
||||
import org.springframework.tests.Assume;
|
||||
import org.springframework.tests.TestGroup;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
@@ -33,13 +36,17 @@ import static org.junit.Assert.*;
|
||||
* NOTE: These tests fail under Eclipse/IDEA because JiBX binding does
|
||||
* not occur by default. The Gradle build should succeed, however.
|
||||
*/
|
||||
@Ignore("INCOMPATIBLE WITH OPENJDK 8 b89+")
|
||||
public class JibxUnmarshallerTests extends AbstractUnmarshallerTests {
|
||||
|
||||
protected static final String INPUT_STRING_WITH_SPECIAL_CHARACTERS =
|
||||
"<tns:flights xmlns:tns=\"http://samples.springframework.org/flight\">" +
|
||||
"<tns:flight><tns:airline>Air Libert\u00e9</tns:airline><tns:number>42</tns:number></tns:flight></tns:flights>";
|
||||
|
||||
@BeforeClass
|
||||
public static void compilerAssumptions() {
|
||||
Assume.group(TestGroup.CUSTOM_COMPILATION);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Unmarshaller createUnmarshaller() throws Exception {
|
||||
JibxMarshaller unmarshaller = new JibxMarshaller();
|
||||
|
||||
Reference in New Issue
Block a user