-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
jr-objects/src/test/java/tools/jackson/jr/failing/ReadIntArray7Test.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,17 @@ | ||
package tools.jackson.jr.failing; | ||
|
||
import static org.junit.Assert.assertArrayEquals; | ||
|
||
import tools.jackson.jr.ob.JSON; | ||
import tools.jackson.jr.ob.TestBase; | ||
|
||
public class ReadIntArray7Test extends TestBase | ||
{ | ||
public void testReadIntArray() throws Exception | ||
{ | ||
final int[] input = new int[] { 1, 2, 3 }; | ||
String json = JSON.std.asString(input); | ||
int[] result = JSON.std.beanFrom(int[].class, json); | ||
assertArrayEquals(input, result); | ||
} | ||
} |
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