git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-4235 JAL-3599 Try and report Eclipse Product Version for jalviewjsTranspile....
[jalview.git]
/
test
/
jalview
/
bin
/
ArgsParserTest.java
diff --git
a/test/jalview/bin/ArgsParserTest.java
b/test/jalview/bin/ArgsParserTest.java
index
0485db7
..
f36b45a
100644
(file)
--- a/
test/jalview/bin/ArgsParserTest.java
+++ b/
test/jalview/bin/ArgsParserTest.java
@@
-25,6
+25,7
@@
import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertNull;
import static org.testng.AssertJUnit.assertTrue;
import static org.testng.AssertJUnit.assertNull;
import static org.testng.AssertJUnit.assertTrue;
+import jalview.bin.ArgsParser;
import jalview.gui.JvOptionPane;
import org.testng.annotations.BeforeClass;
import jalview.gui.JvOptionPane;
import org.testng.annotations.BeforeClass;
@@
-43,8
+44,9
@@
public class ArgsParserTest
@Test(groups = "Functional")
public void testGetValue()
{
@Test(groups = "Functional")
public void testGetValue()
{
- ArgsParser ap = new ArgsParser(new String[] { "-name", "Henry", "-job",
- "Tester" });
+ ArgsParser ap = new ArgsParser(
+ new String[]
+ { "-name", "Henry", "-job", "Tester" });
assertEquals(4, ap.getSize());
assertNull(ap.getValue("rubbish"));
assertEquals("Tester", ap.getValue("job"));
assertEquals(4, ap.getSize());
assertNull(ap.getValue("rubbish"));
assertEquals("Tester", ap.getValue("job"));
@@
-62,8
+64,9
@@
public class ArgsParserTest
@Test(groups = "Functional")
public void testGetValue_decoded()
{
@Test(groups = "Functional")
public void testGetValue_decoded()
{
- ArgsParser ap = new ArgsParser(new String[] { "-name%241", "Henry",
- "-job", "Test%203%2a" });
+ ArgsParser ap = new ArgsParser(
+ new String[]
+ { "-name%241", "Henry", "-job", "Test%203%2a" });
// parameter value is decoded
assertEquals("Test 3*", ap.getValue("job", true));
// parameter name is not decoded
// parameter value is decoded
assertEquals("Test 3*", ap.getValue("job", true));
// parameter name is not decoded
@@
-74,8
+77,9
@@
public class ArgsParserTest
@Test(groups = "Functional")
public void testNextValue()
{
@Test(groups = "Functional")
public void testNextValue()
{
- ArgsParser ap = new ArgsParser(new String[] { "-name", "Henry", "-job",
- "Tester" });
+ ArgsParser ap = new ArgsParser(
+ new String[]
+ { "-name", "Henry", "-job", "Tester" });
assertEquals("name", ap.nextValue());
assertEquals("Henry", ap.nextValue());
assertEquals("job", ap.nextValue());
assertEquals("name", ap.nextValue());
assertEquals("Henry", ap.nextValue());
assertEquals("job", ap.nextValue());
@@
-85,8
+89,9
@@
public class ArgsParserTest
@Test(groups = "Functional")
public void testContains()
{
@Test(groups = "Functional")
public void testContains()
{
- ArgsParser ap = new ArgsParser(new String[] { "-name", "Henry", "-job",
- "Tester" });
+ ArgsParser ap = new ArgsParser(
+ new String[]
+ { "-name", "Henry", "-job", "Tester" });
assertFalse(ap.contains("Susan"));
assertFalse(ap.contains("-name"));
assertTrue(ap.contains("name"));
assertFalse(ap.contains("Susan"));
assertFalse(ap.contains("-name"));
assertTrue(ap.contains("name"));