package com.graphhopper.api;

import com.graphhopper.util.shapes.GHPoint;
import org.junit.Test;

import static junit.framework.TestCase.assertTrue;
import static org.junit.Assert.assertFalse;

public class GHMRequestTest {
    @Test
    public void testCompact() {
        GHMRequest request = new GHMRequest();
        for (int i = 0; i < 3; i++) {
            request.addFromPoint(new GHPoint());
            request.addFromPointHint("");
        }

        request.addToPoint(new GHPoint());
        request.addToPointHint("");

        request.compactPointHints();
        assertTrue(request.getToPointHints().isEmpty());
        assertTrue(request.getFromPointHints().isEmpty());
    }

    @Test
    public void testCompact2() {
        GHMRequest request = new GHMRequest();
        for (int i = 0; i < 3; i++) {
            request.addFromPoint(new GHPoint());
            request.addFromPointHint("");
        }

        request.addToPoint(new GHPoint());
        request.addToPointHint("x");

        request.compactPointHints();
        assertFalse(request.getToPointHints().isEmpty());
        assertTrue(request.getFromPointHints().isEmpty());
    }
}
@@ -84,16 +84,28 @@
 g.junit.
+jupiter.api.
 Test;%0A%0Ai
@@ -121,42 +121,51 @@
 tic 
+org.
 junit.
-framework.TestCase
+jupiter.api.Assertions
 .assert
-Tru
+Fals
 e;%0Ai
@@ -191,25 +191,40 @@
 nit.
+jupiter.api.
 Assert
+ions
 .assert
-Fals
+Tru
 e;%0A%0A

Update another test, trigger build