JAVA-7578: Fix xstream tests
This commit is contained in:
parent
125aa509c0
commit
4d072e5e09
|
@ -15,10 +15,18 @@ public class SimpleXstreamInitializer {
|
|||
}
|
||||
|
||||
public XStream getXstreamJettisonMappedInstance() {
|
||||
return new XStream(new JettisonMappedXmlDriver());
|
||||
XStream xstream = new XStream(new JettisonMappedXmlDriver());
|
||||
xstream.allowTypesByWildcard(new String[]{
|
||||
"com.baeldung.**"
|
||||
});
|
||||
return xstream;
|
||||
}
|
||||
|
||||
public XStream getXstreamJsonHierarchicalInstance() {
|
||||
return new XStream(new JsonHierarchicalStreamDriver());
|
||||
XStream xstream = new XStream(new JsonHierarchicalStreamDriver());
|
||||
xstream.allowTypesByWildcard(new String[]{
|
||||
"com.baeldung.**"
|
||||
});
|
||||
return xstream;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue