logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject RE: cvs commit: jakarta-log4j/tests/witness xmlLayout.null
Date Tue, 18 Feb 2003 19:18:33 GMT

The change is o.a.l.helpers.Transform.java not XMLLayout:

http://marc.theaimsgroup.com/?l=log4j-dev&m=104558701929938&w=2

At 10:43 18.02.2003 -0800, you wrote:
>I see the changes for the test case, but I don't see a check in for the
>11570 fix.
>
>?
>
>-Mark
>
> > -----Original Message-----
> > From: ceki@apache.org [mailto:ceki@apache.org]
> > Sent: Tuesday, February 18, 2003 8:39 AM
> > To: jakarta-log4j-cvs@apache.org
> > Subject: cvs commit: jakarta-log4j/tests/witness xmlLayout.null
> >
> >
> > ceki        2003/02/18 08:39:01
> >
> >   Modified:    tests/src/java/org/apache/log4j/xml Tag: v1_2-branch
> >                         XMLLayoutTestCase.java
> >   Added:       tests/witness Tag: v1_2-branch xmlLayout.null
> >   Log:
> >   Added test case in response to bug 11570.
> >
> >   Revision  Changes    Path
> >   No                   revision
> >
> >
> >   No                   revision
> >
> >
> >   1.2.2.2   +14 -1
> > jakarta-log4j/tests/src/java/org/apache/log4j/xml/XMLLayoutTes
> > tCase.java
> >
> >   Index: XMLLayoutTestCase.java
> >   ===================================================================
> >   RCS file:
> > /home/cvs/jakarta-log4j/tests/src/java/org/apache/log4j/xml/XM
> > LLayoutTestCase.java,v
> >   retrieving revision 1.2.2.1
> >   retrieving revision 1.2.2.2
> >   diff -u -r1.2.2.1 -r1.2.2.2
> >   --- XMLLayoutTestCase.java  11 Jun 2002 13:20:05 -0000      1.2.2.1
> >   +++ XMLLayoutTestCase.java  18 Feb 2003 16:39:01 -0000      1.2.2.2
> >   @@ -71,6 +71,18 @@
> >        assertTrue(Compare.compare(FILTERED, "witness/xmlLayout.3"));
> >      }
> >
> >   +  public void testNull() throws Exception {
> >   +    XMLLayout xmlLayout = new XMLLayout();
> >   +    root.addAppender(new FileAppender(xmlLayout, TEMP, false));
> >   +    logger.debug("hi");
> >   +    logger.debug(null);
> >   +    Exception e = new Exception(null);
> >   +    logger.debug("hi", e);
> >   +    Transformer.transform(TEMP, FILTERED, new Filter[]
> > {new LineNumberFilter(),
> >   +                                                   new
> > XMLTimestampFilter()});
> >   +    assertTrue(Compare.compare(FILTERED,
> > "witness/xmlLayout.null"));
> >   +  }
> >   +
> >      void common() {
> >        int i = -1;
> >
> >   @@ -84,7 +96,7 @@
> >
> >        logger.warn ("Message " + ++i);
> >        root.warn("Message " + i);
> >   -
> >   +
> >        logger.error("Message " + ++i);
> >        root.error("Message " + i);
> >
> >   @@ -104,6 +116,7 @@
> >        suite.addTest(new XMLLayoutTestCase("basic"));
> >        suite.addTest(new XMLLayoutTestCase("locationInfo"));
> >        suite.addTest(new XMLLayoutTestCase("testCDATA"));
> >   +    suite.addTest(new XMLLayoutTestCase("testNull"));
> >        return suite;
> >      }
> >
> >
> >
> >
> >   No                   revision
> >
> >
> >   No                   revision
> >
> >
> >   1.1.2.1   +26 -0
> > jakarta-log4j/tests/witness/Attic/xmlLayout.null
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: log4j-dev-help@jakarta.apache.org
> >
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: log4j-dev-help@jakarta.apache.org

--
Ceki 


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


Mime
View raw message