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

coverage report testing

parent b1363d5f
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="" xmlns:xsi="" xsi:schemaLocation="">
<project xmlns="" xmlns:xsi=""
......@@ -23,6 +24,62 @@
<!-- Sets the VM argument line used when unit tests are run. -->
<!-- Skips unit tests if the value of skip.unit.tests property is true -->
<!-- Excludes integration tests when unit tests are run. -->
<!-- Prepares the property pointing to the JaCoCo runtime agent which
is passed as VM argument when Maven the Surefire plugin is executed. -->
<!-- Sets the path to the file which contains the execution data. -->
<!-- Sets the name of the property containing the settings for JaCoCo
runtime agent. -->
<!-- Ensures that the code coverage report for unit tests is created
after unit tests have been run. -->
<!-- Sets the path to the file which contains the execution data. -->
<!-- Sets the output directory for the code coverage report. -->
import org.junit.Assert;
import org.junit.Test;
import de.potsdam.gfz.usgsapi.json.datamodels.Coordinate;
import net.minidev.json.JSONObject;
* @author Daniel Eggert (
public class CoordinateTest {
public void test() {
double lat = 5;
double lon = 10;
Coordinate c = new Coordinate(lat, lon);
Assert.assertEquals(lat,, Double.MIN_VALUE);
Assert.assertEquals(lon, c.lon, Double.MIN_VALUE);
JSONObject json = c.toJSON();
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