mirror of
https://github.com/google/nomulus
synced 2026-09-01 13:46:55 +00:00
Fix generics in EppXmlTransformer.unmarshal to not be only on the return type.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=124914271
This commit is contained in:
@@ -147,13 +147,13 @@ public class XmlTestdataTest {
|
||||
|
||||
@Theory
|
||||
public void testValid(Good v) throws Exception {
|
||||
XjcObject xml = unmarshal(v.xmlStream);
|
||||
XjcObject xml = unmarshal(XjcObject.class, v.xmlStream);
|
||||
assertThat(xml).isInstanceOf(v.clazz);
|
||||
}
|
||||
|
||||
@Theory
|
||||
public void testInvalid(Evil v) throws Exception {
|
||||
thrown.expectMessage(v.error);
|
||||
unmarshal(v.xmlStream);
|
||||
unmarshal(XjcObject.class, v.xmlStream);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user