Commit 2c28e975 authored by Christian P. MOMON's avatar Christian P. MOMON
Browse files

Moved unitary tests.

parent 3f28d77f
......@@ -18,6 +18,7 @@
*/
package fr.devinsy.strings;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
......@@ -224,4 +225,21 @@ public class StringsUtilsTest
source.set(1, null);
Assert.assertTrue(StringsUtils.containsNull(source));
}
/**
* Load to string list URL 01.
*
* @throws IOException
* Signals that an I/O exception has occurred.
*/
@Test
public void testLoadResource01() throws IOException
{
//
StringList source = StringsUtils.load(StringsUtilsTest.class.getResource("/fr/devinsy/strings/lines.txt"));
//
Assert.assertEquals(4, source.size());
Assert.assertEquals("trois", source.get(3 - 1));
}
}
un
deux
trois
quatre
\ No newline at end of file
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