@@ -180,7 +180,7 @@ public void notfoundTest()
180
180
* Validate that the -out parameter will generate a well formed xml output.
181
181
*
182
182
* @throws Exception
183
- * Any parsing errors will be thrown as an exception.
183
+ * Any parsing errors will be thrown as an exception.
184
184
*/
185
185
@ Test
186
186
public void outputXMLReportTest ()
@@ -206,7 +206,7 @@ public void outputXMLReportTest()
206
206
* unpacked epubs.
207
207
*
208
208
* @throws Exception
209
- * Any parsing errors will be thrown as an exception.
209
+ * Any parsing errors will be thrown as an exception.
210
210
*/
211
211
@ Test
212
212
public void outputXMLModeExpandedReportTest ()
@@ -244,7 +244,7 @@ public void quietTest()
244
244
* get a correct xml output report with the output flag.
245
245
*
246
246
* @throws Exception
247
- * Any parsing errors will be thrown as an exception.
247
+ * Any parsing errors will be thrown as an exception.
248
248
*/
249
249
@ Test
250
250
public void quietRunWithOutputTest ()
@@ -378,9 +378,8 @@ public void missingLocaleShouldFailTest()
378
378
@ Test
379
379
public void helpMessageTest1 ()
380
380
{
381
- runCommandLineTest (1 , "-?" );
382
- assertEquals ("Command output not as expected" , messages .get ("no_file_specified" ),
383
- errContent .toString ().trim ());
381
+ runCommandLineTest (0 , "-?" );
382
+ assertEquals ("" , errContent .toString ().trim ());
384
383
String expected = String .format (messages .get ("help_text" ).replaceAll ("[\\ s]+" , " " ),
385
384
EpubCheck .version ());
386
385
String actual = outContent .toString ();
@@ -395,9 +394,8 @@ public void helpMessageTest1()
395
394
@ Test
396
395
public void helpMessageTest2 ()
397
396
{
398
- runCommandLineTest (1 , "-help" );
399
- assertEquals ("Command output not as expected" , messages .get ("no_file_specified" ),
400
- errContent .toString ().trim ());
397
+ runCommandLineTest (0 , "-help" );
398
+ assertEquals ("" , errContent .toString ().trim ());
401
399
String expected = String .format (messages .get ("help_text" ).replaceAll ("[\\ s]+" , " " ),
402
400
EpubCheck .version ());
403
401
String actual = outContent .toString ();
@@ -412,9 +410,8 @@ public void helpMessageTest2()
412
410
@ Test
413
411
public void helpMessageTest3 ()
414
412
{
415
- runCommandLineTest (1 , "--help" );
416
- assertEquals ("Command output not as expected" , messages .get ("no_file_specified" ),
417
- errContent .toString ().trim ());
413
+ runCommandLineTest (0 , "--help" );
414
+ assertEquals ("" , errContent .toString ().trim ());
418
415
String expected = String .format (messages .get ("help_text" ).replaceAll ("[\\ s]+" , " " ),
419
416
EpubCheck .version ());
420
417
String actual = outContent .toString ();
@@ -428,9 +425,8 @@ public void helpMessageTest3()
428
425
@ Test
429
426
public void versionDisplayTest1 ()
430
427
{
431
- runCommandLineTest (1 , "--version" );
432
- assertEquals ("Command output not as expected" , messages .get ("no_file_specified" ),
433
- errContent .toString ().trim ());
428
+ runCommandLineTest (0 , "--version" );
429
+ assertEquals ("" , errContent .toString ().trim ());
434
430
String expected = String .format (
435
431
messages .get ("epubcheck_version_text" ).replaceAll ("[\\ s]+" , " " ), EpubCheck .version ());
436
432
String actual = outContent .toString ();
@@ -444,9 +440,8 @@ public void versionDisplayTest1()
444
440
@ Test
445
441
public void versionDisplayTest2 ()
446
442
{
447
- runCommandLineTest (1 , "-version" );
448
- assertEquals ("Command output not as expected" , messages .get ("no_file_specified" ),
449
- errContent .toString ().trim ());
443
+ runCommandLineTest (0 , "-version" );
444
+ assertEquals ("" , errContent .toString ().trim ());
450
445
String expected = String .format (
451
446
messages .get ("epubcheck_version_text" ).replaceAll ("[\\ s]+" , " " ), EpubCheck .version ());
452
447
String actual = outContent .toString ();
@@ -689,7 +684,7 @@ public void failOnWarningsTest()
689
684
* document.
690
685
*
691
686
* @throws Exception
692
- * Throws an exception if the temp file can't be created.
687
+ * Throws an exception if the temp file can't be created.
693
688
*/
694
689
@ Test
695
690
public void jsonFileTest ()
@@ -714,7 +709,7 @@ public void jsonFileTest()
714
709
* document.
715
710
*
716
711
* @throws Exception
717
- * Any parsing errors will be thrown as an exception.
712
+ * Any parsing errors will be thrown as an exception.
718
713
*/
719
714
@ Test
720
715
public void xmlFileTest ()
@@ -740,7 +735,7 @@ public void xmlFileTest()
740
735
* document.
741
736
*
742
737
* @throws Exception
743
- * Any parsing errors will be thrown as an exception.
738
+ * Any parsing errors will be thrown as an exception.
744
739
*/
745
740
@ Test
746
741
public void xmpFileTest ()
0 commit comments