Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
geomultisens
gms-aux
Commits
fab5c602
Commit
fab5c602
authored
Aug 25, 2017
by
Daniel Eggert
Browse files
added test for Bounds class
parent
4fc0baf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
usgs-api/src/test/java/de/potsdam/de/gfz/usgsapi/json/datamodels/BoundsTest.java
0 → 100644
View file @
fab5c602
/**
*
*/
package
de.potsdam.de.gfz.usgsapi.json.datamodels
;
import
org.junit.Assert
;
import
org.junit.Test
;
import
de.potsdam.gfz.usgsapi.json.datamodels.Bounds
;
/**
* @author Daniel Eggert (daniel.eggert@gfz-potsdam.de)
*
*/
public
class
BoundsTest
{
@Test
public
void
test
()
{
final
double
n
=
1
;
final
double
e
=
2
;
final
double
s
=
3
;
final
double
w
=
4
;
Bounds
b
=
new
Bounds
(
n
,
e
,
s
,
w
);
Assert
.
assertEquals
(
n
,
b
.
north
,
Double
.
MIN_VALUE
);
Assert
.
assertEquals
(
e
,
b
.
east
,
Double
.
MIN_VALUE
);
Assert
.
assertEquals
(
s
,
b
.
south
,
Double
.
MIN_VALUE
);
Assert
.
assertEquals
(
w
,
b
.
west
,
Double
.
MIN_VALUE
);
}
}
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