@@ -16,7 +16,7 @@ public void testCreateWithNoSchemaOrArguments() throws Exception {
1616 }
1717
1818 @ Test
19- public void testWithNoSchemaButWithOneArgument () throws Exception {
19+ public void testWithNoSchemaButWithOneArgument () {
2020 try {
2121 new Args ("" , new String []{"-x" });
2222 fail ();
@@ -27,7 +27,7 @@ public void testWithNoSchemaButWithOneArgument() throws Exception {
2727 }
2828
2929 @ Test
30- public void testWithNoSchemaButWithMultipleArguments () throws Exception {
30+ public void testWithNoSchemaButWithMultipleArguments () {
3131 try {
3232 new Args ("" , new String []{"-x" , "-y" });
3333 fail ();
@@ -39,7 +39,7 @@ public void testWithNoSchemaButWithMultipleArguments() throws Exception {
3939 }
4040
4141 @ Test
42- public void testNonLetterSchema () throws Exception {
42+ public void testNonLetterSchema () {
4343 try {
4444 new Args ("*" , new String []{});
4545 fail ("Args constructor should have thrown exception" );
@@ -50,7 +50,7 @@ public void testNonLetterSchema() throws Exception {
5050 }
5151
5252 @ Test
53- public void testInvalidArgumentFormat () throws Exception {
53+ public void testInvalidArgumentFormat () {
5454 try {
5555 new Args ("f~" , new String []{});
5656 fail ("Args constructor should have throws exception" );
@@ -76,7 +76,7 @@ public void testSimpleStringPresent() throws Exception {
7676 }
7777
7878 @ Test
79- public void testMissingStringArgument () throws Exception {
79+ public void testMissingStringArgument () {
8080 try {
8181 new Args ("x*" , new String []{"-x" });
8282 fail ();
@@ -103,7 +103,7 @@ public void testSimpleIntPresent() throws Exception {
103103 }
104104
105105 @ Test
106- public void testInvalidInteger () throws Exception {
106+ public void testInvalidInteger () {
107107 try {
108108 new Args ("x#" , new String []{"-x" , "Forty two" });
109109 fail ();
@@ -116,7 +116,7 @@ public void testInvalidInteger() throws Exception {
116116 }
117117
118118 @ Test
119- public void testMissingInteger () throws Exception {
119+ public void testMissingInteger () {
120120 try {
121121 new Args ("x#" , new String []{"-x" });
122122 fail ();
@@ -134,7 +134,7 @@ public void testSimpleDoublePresent() throws Exception {
134134 }
135135
136136 @ Test
137- public void testInvalidDouble () throws Exception {
137+ public void testInvalidDouble () {
138138 try {
139139 new Args ("x##" , new String []{"-x" , "Forty two" });
140140 fail ();
@@ -146,7 +146,7 @@ public void testInvalidDouble() throws Exception {
146146 }
147147
148148 @ Test
149- public void testMissingDouble () throws Exception {
149+ public void testMissingDouble () {
150150 try {
151151 new Args ("x##" , new String []{"-x" });
152152 fail ();
@@ -166,7 +166,7 @@ public void testStringArray() throws Exception {
166166 }
167167
168168 @ Test
169- public void testMissingStringArrayElement () throws Exception {
169+ public void testMissingStringArrayElement () {
170170 try {
171171 new Args ("x[*]" , new String []{"-x" });
172172 fail ();
@@ -198,7 +198,7 @@ public void MapArgument() throws Exception {
198198
199199 @ Test (expected = ArgsException .class )
200200 public void malFormedMapArgument () throws Exception {
201- Args args = new Args ("f&" , new String []{"-f" , "key1:val1,key2" });
201+ new Args ("f&" , new String []{"-f" , "key1:val1,key2" });
202202 }
203203
204204 @ Test
0 commit comments