package org.lemsml.jlems.test;

import static org.junit.Assert.*;

import java.net.MalformedURLException;
import java.net.URL;

import org.junit.Test;
import org.lemsml.jlems.core.sim.ContentError;
import org.lemsml.jlems.io.reader.URLInclusionReader;

public class URLInclusionReaderTest
{

	@Test
	public void testRead() throws MalformedURLException, ContentError
	{
		URL url = new URL("https://www.dropbox.com/s/qzqhdthror8435e/LEMS_NML2_Ex5_DetCell.xml?dl=1");
		URLInclusionReader urlInclusionReader = new URLInclusionReader(url);
		String lemsContent=urlInclusionReader.read();
		assertNotNull(lemsContent);
		assertFalse(lemsContent.isEmpty());
	}

}

@@ -363,17 +363,24 @@
 ror%0A%09%7B%0A%09
-%09
+        
 URL url 
@@ -402,41 +402,99 @@
 s://
-www.dropbox.com/s/qzqhdthror8435e
+raw.githubusercontent.com/LEMS/jLEMS/development/src/test/resources/tests/SingleComponentHH
 /LEM
@@ -519,13 +519,8 @@
 .xml
-?dl=1
 %22);%0A

Update URLInclusionReaderTest.java