lewismc commented on a change in pull request #35: SDAP-161 MUDROD embedded
unit test
URL:
https://github.com/apache/incubator-sdap-mudrod/pull/35#discussion_r238034104
##########
File path:
core/src/test/java/org/apache/sdap/mudrod/weblog/structure/RequestUrlTest.java
##########
@@ -0,0 +1,75 @@
+package org.apache.sdap.mudrod.weblog.structure;
+
+import static org.junit.Assert.*;
+
+import java.io.UnsupportedEncodingException;
+import java.util.Map;
+
+import org.apache.sdap.mudrod.weblog.structure.log.RequestUrl;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class RequestUrlTest {
+
+// @BeforeClass
+// public void setUp(){
+// RequestUrl url = new RequestUrl();
+//
+// }
+// @Test
+// public void testRequestUrl() {
+// fail("Not yet implemented");
+// }
+
+ @Test
+ public void testUrlPage() {
+ RequestUrl url = new RequestUrl();
+ String strURL =
"https://podaac.jpl.nasa.gov/datasetlist?ids=Collections:Measurement:SpatialCoverage:Platform:Sensor&values=SCAT_BYU_L3_OW_SIGMA0_ENHANCED:Sea%20Ice:Bering%20Sea:ERS-2:AMI&view=list";
+ String result = url.urlPage(strURL);
+ //System.out.println(urlPage);
+ ///fail("Not yet implemented");
+ Assert.assertEquals("You did not pass urlPage function ",
"https://podaac.jpl.nasa.gov/datasetlist", result);
+ }
+
+ @Test
+ public void testuRLRequest() {
+ RequestUrl url = new RequestUrl();
+ String strURL =
"https://podaac.jpl.nasa.gov/datasetlist?ids=Collections:Measurement:SpatialCoverage:Platform:Sensor&values=SCAT_BYU_L3_OW_SIGMA0_ENHANCED:Sea%20Ice:Bering%20Sea:ERS-2:AMI&view=list";
Review comment:
Why is this not a constant?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services