Skip to content

Commit d2251a1

Browse files
committed
Fixed illegal characters in JibxUnmarshallerTests
JibxUnmarshallerTests contained UTF-8 characters; this commit changes those to the \uXXX notation, as all Java source files should be in Latin-1.
1 parent bb5c81e commit d2251a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-oxm/src/test/java/org/springframework/oxm/jibx/JibxUnmarshallerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class JibxUnmarshallerTests extends AbstractUnmarshallerTests {
3737

3838
protected static final String INPUT_STRING_WITH_SPECIAL_CHARACTERS =
3939
"<tns:flights xmlns:tns=\"http://samples.springframework.org/flight\">" +
40-
"<tns:flight><tns:airline>Air Liberté</tns:airline><tns:number>42</tns:number></tns:flight></tns:flights>";
40+
"<tns:flight><tns:airline>Air Libert\u00e9</tns:airline><tns:number>42</tns:number></tns:flight></tns:flights>";
4141

4242
@Override
4343
protected Unmarshaller createUnmarshaller() throws Exception {
@@ -78,7 +78,7 @@ public void unmarshalStreamSourceInputStreamUsingNonDefaultEncoding() throws Exc
7878
testFlights(flights);
7979

8080
FlightType flight = ((Flights)flights).getFlight(0);
81-
assertEquals("Airline is invalid", "Air Liberté", flight.getAirline());
81+
assertEquals("Airline is invalid", "Air Libert\u00e9", flight.getAirline());
8282
}
8383

8484
}

0 commit comments

Comments
 (0)