FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-java/test/java-staticField-test.js at master · benken/node-java · GitHub
benken
/
node-java
Public
forked from
joeferner/node-java
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
node-java
/
test
/
java-staticField-test.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (37 loc) · 1.28 KB
Breadcrumbs
node-java
/
test
/
java-staticField-test.js
Copy path
File metadata and controls
45 lines (37 loc) · 1.28 KB
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
36
37
38
39
40
41
42
43
44
45
var
java
=
require
(
"../testHelpers"
)
.
java
;
var
nodeunit
=
require
(
"nodeunit"
)
;
var
util
=
require
(
"util"
)
;
exports
[
'Java - Static Field'
]
=
nodeunit
.
testCase
(
{
tearDown
:
function
(
callback
)
{
java
.
setStaticFieldValue
(
"Test"
,
"staticFieldInt"
,
42
)
;
callback
(
)
;
}
,
"getStaticFieldValue int"
:
function
(
test
)
{
var
val
=
java
.
getStaticFieldValue
(
"Test"
,
"staticFieldInt"
)
;
test
.
equal
(
val
,
42
)
;
test
.
done
(
)
;
}
,
"setStaticFieldValue int"
:
function
(
test
)
{
java
.
setStaticFieldValue
(
"Test"
,
"staticFieldInt"
,
112
)
;
var
val
=
java
.
getStaticFieldValue
(
"Test"
,
"staticFieldInt"
)
;
test
.
equal
(
val
,
112
)
;
test
.
done
(
)
;
}
,
"getStaticFieldValue double"
:
function
(
test
)
{
var
val
=
java
.
getStaticFieldValue
(
"Test"
,
"staticFieldDouble"
)
;
test
.
equal
(
val
,
42.5
)
;
test
.
done
(
)
;
}
,
"setStaticFieldValue double"
:
function
(
test
)
{
java
.
setStaticFieldValue
(
"Test"
,
"staticFieldDouble"
,
112.12
)
;
var
val
=
java
.
getStaticFieldValue
(
"Test"
,
"staticFieldDouble"
)
;
test
.
equal
(
val
,
112.12
)
;
test
.
done
(
)
;
}
,
"setStaticFieldValue double (set int)"
:
function
(
test
)
{
java
.
setStaticFieldValue
(
"Test"
,
"staticFieldDouble"
,
112
)
;
var
val
=
java
.
getStaticFieldValue
(
"Test"
,
"staticFieldDouble"
)
;
test
.
equal
(
val
,
112
)
;
test
.
done
(
)
;
}
,
}
)
;
Back
|
FazBrowse Home
|
New Git URL