Skip to content

Commit

Permalink
add junit imports
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Jul 30, 2024
1 parent a055e3d commit 45717a2
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
import org.apache.logging.log4j.core.config.DefaultConfiguration;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import static org.mockito.Mockito.when;
import org.mockito.junit.MockitoJUnitRunner;

import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
Expand All @@ -38,6 +42,7 @@
* @author dmartinez
*
*/
@RunWith(MockitoJUnitRunner.class)
public class FeatureTest {

/**
Expand Down Expand Up @@ -114,7 +119,7 @@ public void getSetObjectId() {
feature.setObjectId(255);
assertTrue("getObjectId() doesn't match", feature.getObjectId() == 255);
assertTrue("OBJECTID not properly saved",
((Long) feature.getAttributes().get("OBJECTID")) == 255);
((Long)feature.getAttributes().get("OBJECTID")) == 255);
} catch (ArcgisException e) {
fail(e.getMessage());
}
Expand Down Expand Up @@ -158,6 +163,7 @@ public void getPolyFeatureTest() {
System.out.println("---------------- getNewPolyLineFeature");
Feature poly = FeatureTestFactory.getNewPolyLineFeature("Mi PolyLine", 33);
System.out.println("feature poly - " + poly.toJson());
assertTrue("ok.", true);
}

}

0 comments on commit 45717a2

Please sign in to comment.