-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move #323 back under failing since it's still unsolvable, unlike othe…
…r bogus conflicts
- Loading branch information
1 parent
6809c86
commit 7541cba
Showing
3 changed files
with
44 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/test/java/com/fasterxml/jackson/failing/TestPropertyConflict323.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.fasterxml.jackson.failing; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.databind.*; | ||
|
||
/** | ||
* Unit tests verifying handling of potential and actual | ||
* conflicts, regarding property handling. | ||
*/ | ||
public class TestPropertyConflict323 extends BaseMapTest | ||
{ | ||
// [Issue#323] | ||
static class Bean323 { | ||
private int a; | ||
|
||
public Bean323 (@JsonProperty("a") final int a ) { | ||
this.a = a; | ||
} | ||
|
||
@JsonProperty("b") | ||
private int getA () { | ||
return a; | ||
} | ||
} | ||
|
||
/* | ||
/********************************************************** | ||
/* Test methods | ||
/********************************************************** | ||
*/ | ||
|
||
// [Issue#323] | ||
public void testCreatorPropRename() throws Exception | ||
{ | ||
Bean323 input = new Bean323(7); | ||
assertEquals("{\"b\":7}", objectWriter().writeValueAsString(input)); | ||
} | ||
} |