package jalview.util;
import static org.testng.AssertJUnit.assertEquals;
-import static org.testng.AssertJUnit.assertTrue;
import static org.testng.AssertJUnit.assertNull;
-import org.testng.annotations.Test;
+import static org.testng.AssertJUnit.assertTrue;
+
import java.util.Arrays;
+import org.testng.annotations.Test;
+
public class StringUtilsTest
{
- @Test
+ @Test(groups ={ "Functional" })
public void testInsertCharAt()
{
char[] c1 = "ABC".toCharArray();
StringUtils.insertCharAt(c1, 7, 2, 'w')));
}
- @Test
+ @Test(groups ={ "Functional" })
public void testDeleteChars()
{
char[] c1 = "ABC".toCharArray();
assertTrue(Arrays.equals(c1, StringUtils.deleteChars(c1, 3, 4)));
}
- @Test
+ @Test(groups ={ "Functional" })
public void testGetLastToken()
{
assertNull(StringUtils.getLastToken(null, null));
"file://localhost:8080/data/examples/file1.dat", "/"));
}
- @Test
+ @Test(groups ={ "Functional" })
public void testSeparatorListToArray()
{
String[] result = StringUtils.separatorListToArray(
.separatorListToArray("abc='|'d|ef|g", "|")));
}
- @Test
+ @Test(groups ={ "Functional" })
public void testArrayToSeparatorList()
{
assertEquals("*", StringUtils.arrayToSeparatorList(null, "*"));