Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Fastjson
Commits
00634be9
Commit
00634be9
authored
8 years ago
by
wenshao
Browse files
Options
Download
Email Patches
Plain Diff
fixed testcase
parent
5f8c776d
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/com/alibaba/json/bvt/bug/Issue585.java
+4
-0
src/test/java/com/alibaba/json/bvt/bug/Issue585.java
with
4 additions
and
0 deletions
+4
-0
src/test/java/com/alibaba/json/bvt/bug/Issue585.java
+
4
-
0
View file @
00634be9
...
...
@@ -8,13 +8,16 @@ import org.junit.Assert;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.parser.Feature
;
import
com.alibaba.fastjson.parser.ParserConfig
;
import
junit.framework.TestCase
;
public
class
Issue585
extends
TestCase
{
private
String
original
=
JSON
.
DEFAULT_TYPE_KEY
;
private
ParserConfig
originalConfig
=
ParserConfig
.
global
;
protected
void
setUp
()
throws
Exception
{
ParserConfig
.
global
=
new
ParserConfig
();
if
(!
JSON
.
DEFAULT_TYPE_KEY
.
equals
(
"mySpace"
))
{
JSON
.
setDefaultTypeKey
(
"mySpace"
);
}
...
...
@@ -22,6 +25,7 @@ public class Issue585 extends TestCase {
protected
void
tearDown
()
throws
Exception
{
JSON
.
setDefaultTypeKey
(
original
);
ParserConfig
.
global
=
originalConfig
;
}
public
void
test_for_issue
()
throws
Exception
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help