You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by he...@apache.org on 2003/06/09 14:38:46 UTC
cvs commit: jakarta-turbine-2/conf/test Log4j.properties
henning 2003/06/09 05:38:46
Modified: src/test/org/apache/turbine/services/schedule
JobEntryTest.java
src/test/org/apache/turbine/services/template InitTest.java
src/test/org/apache/turbine/services/velocity
PathConverterTest.java
conf/test Log4j.properties
Log:
There is more to tests that AssertTrue.
Silence the log4j log messages. Only FATAL is really interesting.
Revision Changes Path
1.3 +2 -2 jakarta-turbine-2/src/test/org/apache/turbine/services/schedule/JobEntryTest.java
Index: JobEntryTest.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/test/org/apache/turbine/services/schedule/JobEntryTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- JobEntryTest.java 7 Jun 2003 11:46:11 -0000 1.2
+++ JobEntryTest.java 9 Jun 2003 12:38:45 -0000 1.3
@@ -107,7 +107,7 @@
*/
public void testCompareTo()
{
- assertTrue(!je1.equals(je2));
+ assertFalse(je1.equals(je2));
je2.setJobId(je1.getJobId());
assertTrue(je1.equals(je2));
1.5 +2 -2 jakarta-turbine-2/src/test/org/apache/turbine/services/template/InitTest.java
Index: InitTest.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/test/org/apache/turbine/services/template/InitTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- InitTest.java 7 Jun 2003 11:46:11 -0000 1.4
+++ InitTest.java 9 Jun 2003 12:38:45 -0000 1.5
@@ -98,7 +98,7 @@
{
// Can we start the service?
- assertTrue("Could not load Service!", ts != null);
+ assertNotNull("Could not load Service!", ts);
// Did we register the Velocity Service correctly for "vm" templates?
VelocityService vs = (VelocityService) TurbineServices
1.6 +2 -2 jakarta-turbine-2/src/test/org/apache/turbine/services/velocity/PathConverterTest.java
Index: PathConverterTest.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/test/org/apache/turbine/services/velocity/PathConverterTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- PathConverterTest.java 7 Jun 2003 11:46:11 -0000 1.5
+++ PathConverterTest.java 9 Jun 2003 12:38:46 -0000 1.6
@@ -102,7 +102,7 @@
{
// Can we start the service?
- assertTrue("Could not load Service!", vs != null);
+ assertNotNull("Could not load Service!", vs);
}
public void testPathTranslation()
1.2 +2 -2 jakarta-turbine-2/conf/test/Log4j.properties
Index: Log4j.properties
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/conf/test/Log4j.properties,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Log4j.properties 7 Mar 2003 11:59:02 -0000 1.1
+++ Log4j.properties 9 Jun 2003 12:38:46 -0000 1.2
@@ -6,7 +6,7 @@
#
# ------------------------------------------------------------------------
-log4j.rootLogger = WARN, log
+log4j.rootLogger = FATAL, log
log4j.appender.log = org.apache.log4j.ConsoleAppender
log4j.appender.log.target = System.out
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org