File tree Expand file tree Collapse file tree 3 files changed +9
-53
lines changed
src/test/java/com/fasterxml/jackson/failing Expand file tree Collapse file tree 3 files changed +9
-53
lines changed Original file line number Diff line number Diff line change 5
5
import com .fasterxml .jackson .annotation .JacksonInject ;
6
6
import com .fasterxml .jackson .annotation .JsonCreator ;
7
7
import com .fasterxml .jackson .annotation .JsonProperty ;
8
+
8
9
import com .fasterxml .jackson .databind .*;
9
- import com .fasterxml .jackson .databind .json . JsonMapper ;
10
+ import com .fasterxml .jackson .databind .testutil . DatabindTestUtil ;
10
11
11
12
import static org .junit .jupiter .api .Assertions .assertEquals ;
12
13
13
- class JacksonInject4218Test
14
+ // [databind#4218]
15
+ class JacksonInject4218Test extends DatabindTestUtil
14
16
{
15
17
static class Dto {
16
18
@ JacksonInject ("id" )
@@ -46,10 +48,11 @@ public Object findInjectableValue(
46
48
}
47
49
}
48
50
51
+ // [databind#4218]
49
52
@ Test
50
- void test () throws Exception
53
+ void injectFail4218 () throws Exception
51
54
{
52
- ObjectReader reader = new JsonMapper ()
55
+ ObjectReader reader = newJsonMapper ()
53
56
.readerFor (Dto .class )
54
57
.with (new MyInjectableValues ());
55
58
Original file line number Diff line number Diff line change 10
10
import com .fasterxml .jackson .databind .ObjectMapper ;
11
11
import com .fasterxml .jackson .databind .objectid .TestObjectId .Employee ;
12
12
import com .fasterxml .jackson .databind .testutil .DatabindTestUtil ;
13
- import com .fasterxml .jackson .failing .TestObjectIdDeserialization .EnumMapCompany .FooEnum ;
13
+ import com .fasterxml .jackson .failing .ObjectIdDeserializationFailTest .EnumMapCompany .FooEnum ;
14
14
15
15
import static org .junit .jupiter .api .Assertions .assertEquals ;
16
16
import static org .junit .jupiter .api .Assertions .assertSame ;
22
22
* code (2.4), are included here. Other cases moved to successfully
23
23
* passing tests.
24
24
*/
25
- class TestObjectIdDeserialization extends DatabindTestUtil {
25
+ class ObjectIdDeserializationFailTest extends DatabindTestUtil {
26
26
static class ArrayCompany {
27
27
public Employee [] employees ;
28
28
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments