commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/jelly/src/test/org/apache/commons/jelly/test/impl TestEmbedded.java
Date Wed, 26 Jan 2005 13:10:09 GMT
dion        2005/01/26 05:10:09

  Modified:    jelly/src/test/org/apache/commons/jelly/test/impl
                        TestEmbedded.java
  Log:
  Make asserts more obvious
  
  Revision  Changes    Path
  1.8       +3 -3      jakarta-commons/jelly/src/test/org/apache/commons/jelly/test/impl/TestEmbedded.java
  
  Index: TestEmbedded.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/src/test/org/apache/commons/jelly/test/impl/TestEmbedded.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TestEmbedded.java	6 Jan 2005 09:05:28 -0000	1.7
  +++ TestEmbedded.java	26 Jan 2005 13:10:09 -0000	1.8
  @@ -68,16 +68,16 @@
           embedded.setOutputStream(baos);
           boolean status = embedded.execute();
           //executed properly without script errors
  -        assertEquals(status, true);
  +        assertTrue("Emebedded execution failed", status);
           //check that the output  confirms the exepected
           assertEquals("jelly-test-case", new String(baos.toByteArray()));
           //test generation of error
           embedded.setScript(jellyScript + "obnoxious-part");
           status = embedded.execute();
           //test failure of execution
  -        assertEquals(false, status);
  +        assertFalse("A script with bad XML was executed successfully", status);
           //Asserting the parser generated a errorMsg
  -        assertNotNull(embedded.getErrorMsg());
  +        assertNotNull("A script with bad XML didn't generate an error message", embedded.getErrorMsg());
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message