Reinstate CastorUnmarshallerTests.clearCollectionsFalse()
This commit is contained in:
parent
e9367a11f6
commit
8f4fb207d7
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -181,7 +181,6 @@ public class CastorUnmarshallerTests extends AbstractUnmarshallerTests<CastorMar
|
|||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Fails on the build server for some reason")
|
||||
public void clearCollectionsFalse() throws Exception {
|
||||
Flights flights = new Flights();
|
||||
flights.setFlight(new Flight[] {new Flight(), null});
|
||||
|
@ -190,8 +189,7 @@ public class CastorUnmarshallerTests extends AbstractUnmarshallerTests<CastorMar
|
|||
Object result = unmarshalFlights();
|
||||
|
||||
assertSame("Result Flights is different object.", flights, result);
|
||||
assertEquals("Result Flights has incorrect number of Flight.", 3, ((Flights) result).getFlightCount());
|
||||
assertNull("Flight shouldn't have number.", flights.getFlight(0).getNumber());
|
||||
assertEquals("Result Flights has incorrect number of Flights.", 3, ((Flights) result).getFlightCount());
|
||||
assertNull("Null Flight was expected.", flights.getFlight()[1]);
|
||||
testFlight(flights.getFlight()[2]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue