File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
avro/src/test/java/com/fasterxml/jackson/dataformat/avro/interop/annotations Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 5
5
import org .apache .avro .reflect .AvroName ;
6
6
import org .junit .Test ;
7
7
8
+ import com .fasterxml .jackson .databind .exc .InvalidDefinitionException ;
8
9
import com .fasterxml .jackson .dataformat .avro .AvroTestBase ;
9
10
import com .fasterxml .jackson .dataformat .avro .interop .InteropTestBase ;
10
11
@@ -34,19 +35,23 @@ public static class RecordWithNameCollision {
34
35
}
35
36
36
37
@ Test
37
- public void testRecordWithRenamedField () throws IOException {
38
+ public void testRecordWithRenamedField () throws Exception {
38
39
RecordWithRenamed original = new RecordWithRenamed ();
39
40
original .someField = "blah" ;
40
41
RecordWithRenamed result = roundTrip (original );
41
42
assertThat (result ).isEqualTo (original );
42
43
}
43
44
44
- public void testRecordWithNameCollision () throws IOException {
45
+ // 02-Nov-2023, tatu: This test has been disabled for some reason, but
46
+ // without commentary. Fixed it a bit but ultimately can't enable yet
47
+
48
+ // @Test
49
+ public void testRecordWithNameCollision () throws Exception {
45
50
try {
46
51
schemaFunctor .apply (RecordWithNameCollision .class );
47
52
fail ("Should not pass" );
48
- } catch (IllegalArgumentException e ) {
49
- AvroTestBase .verifyException (e , "foobar " );
53
+ } catch (InvalidDefinitionException e ) {
54
+ AvroTestBase .verifyException (e , "double field entry: otherField " );
50
55
}
51
56
}
52
57
}
You can’t perform that action at this time.
0 commit comments