Log Message
Make Java 1.4 compatible.
Modified Paths
Diff
Modified: branches/v-1.4.x/xstream/src/test/com/thoughtworks/acceptance/ExtendedTypesTest.java (2250 => 2251)
--- branches/v-1.4.x/xstream/src/test/com/thoughtworks/acceptance/ExtendedTypesTest.java 2014-01-31 18:41:44 UTC (rev 2250)
+++ branches/v-1.4.x/xstream/src/test/com/thoughtworks/acceptance/ExtendedTypesTest.java 2014-01-31 22:39:05 UTC (rev 2251)
@@ -28,7 +28,7 @@
protected void setUp() throws Exception {
super.setUp();
- xstream.allowTypes(new Class[]{Element.class, Color.class, Date.class, Time.class, Timestamp.class});
+ xstream.allowTypes(new Class[]{Element.class, Date.class, Time.class, Timestamp.class});
// Ensure that this test always run as if it were in the EST timezone.
// This prevents failures when running the tests in different zones.
@@ -44,6 +44,7 @@
public void testAwtColor() {
boolean isHeadless = Boolean.valueOf(System.getProperty("java.awt.headless", "false")).booleanValue();
if (!isHeadless || JVM.is15()) {
+ xstream.allowTypes(new Class[]{Color.class});
Color color = new Color(0, 10, 20, 30);
String expected = "" +
To unsubscribe from this list please visit:
