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
master
dependabot/maven/com.fasterxml.jackson.core-jackson-databind-2.12.6.1
dependabot/maven/com.google.code.gson-gson-2.8.9
dependabot/maven/com.google.protobuf-protobuf-java-3.16.1
dependabot/maven/org.codehaus.groovy-groovy-2.4.21
dependabot/maven/org.eclipse.jetty-jetty-server-9.4.41.v20210516
dependabot/maven/org.eclipse.jetty-jetty-webapp-9.4.34.v20201102
dependabot/maven/org.hibernate-hibernate-core-5.4.24.Final
dependabot/maven/org.jetbrains.kotlin-kotlin-stdlib-1.6.0
dependabot/maven/org.springframework-spring-webmvc-5.3.18
issue/#3138
summer_of_code_json_check
1.2.83
1.2.80
1.2.79
1.2.78
1.2.76
1.2.75
1.2.74
1.2.73
1.2.72
1.2.71
1.2.70
1.2.69
1.2.68
1.2.67
1.2.66
1.2.63
1.2.62
1.2.61
1.2.60
1.2.59
1.2.58
1.2.57
1.2.56
1.2.55
1.2.54
1.2.52
1.2.51
1.2.50
1.2.49
1.2.48
1.2.47
1.2.46
1.2.45
1.2.44
1.2.43
1.2.42
1.2.41
1.2.40
1.2.39
1.2.38
1.2.37
1.2.36
1.2.35
1.2.34
1.2.33
1.2.32
1.2.31
1.2.30
1.2.29
1.2.28
1.2.27
1.2.26
1.2.25
1.2.24
1.2.23
1.2.22
1.2.21
1.2.20
1.2.19
1.2.18
1.2.17
1.2.16
1.2.15
1.2.14
1.2.14.sec01
1.1.37
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