Commit fab5c602 authored by Daniel Eggert's avatar Daniel Eggert
Browse files

added test for Bounds class

parent 4fc0baf4
/**
*
*/
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);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment