FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JSON-java/tests/TestJSONException.java at master · 525846028/JSON-java · GitHub
525846028
/
JSON-java
Public
forked from
stleary/JSON-java
Notifications
You must be signed in to change notification settings
Fork
0
Star
2
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
JSON-java
/
tests
/
TestJSONException.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (28 loc) · 785 Bytes
Breadcrumbs
JSON-java
/
tests
/
TestJSONException.java
Copy path
File metadata and controls
35 lines (28 loc) · 785 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* File: TestJSONException.java Author: JSON.org
*/
package
org
.
json
.
tests
;
import
org
.
json
.
JSONException
;
import
junit
.
framework
.
TestCase
;
/**
* The Class TestJSONException.
*/
public
class
TestJSONException
extends
TestCase
{
/** The jsonexception. */
JSONException
jsonexception
;
/**
* Tests the constructor method using string.
*/
public
void
testConstructor_String
() {
jsonexception
=
new
JSONException
(
"test String"
);
assertEquals
(
"test String"
,
jsonexception
.
getMessage
());
}
/**
* Tests the constructor method using exception.
*/
public
void
testConstructor_Exception
() {
Exception
e
=
new
Exception
();
jsonexception
=
new
JSONException
(
e
);
assertEquals
(
e
,
jsonexception
.
getCause
());
}
}
Back
|
FazBrowse Home
|
New Git URL