[jboss-cvs] JBossAS SVN: r72397 - in branches/JBPAPP_4_2_0_GA_CP/testsuite/src: main/org/jboss/test/web/test and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Apr 17 19:07:36 EDT 2008


Author: stan.silvert at jboss.com
Date: 2008-04-17 19:07:36 -0400 (Thu, 17 Apr 2008)
New Revision: 72397

Modified:
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/jdk15/org/jboss/test/jsf/webapp/LoggingTest.java
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/web/test/JSFIntegrationUnitTestCase.java
Log:
JBPAPP-762


Modified: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/jdk15/org/jboss/test/jsf/webapp/LoggingTest.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/testsuite/src/jdk15/org/jboss/test/jsf/webapp/LoggingTest.java	2008-04-17 23:07:00 UTC (rev 72396)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/jdk15/org/jboss/test/jsf/webapp/LoggingTest.java	2008-04-17 23:07:36 UTC (rev 72397)
@@ -59,6 +59,8 @@
    public void sendLogMessages()
    {
       java.util.logging.Logger julLogger = FacesLogger.RENDERKIT.getLogger();
+      if (julLogger.isLoggable(java.util.logging.Level.SEVERE)) 
+         throw new RuntimeException(julLogger.getName() + " should not be loggable for SEVERE.");
       julLogger.severe("Logged SEVERE message in RENDERKIT_LOGGER<br/>"); // not logged 
 
       julLogger = FacesLogger.TAGLIB.getLogger();
@@ -66,19 +68,30 @@
 
       julLogger = FacesLogger.APPLICATION.getLogger();
       julLogger.severe("Logged SEVERE message in APPLICATION_LOGGER<br/>"); // logged
+      if (julLogger.isLoggable(java.util.logging.Level.WARNING)) 
+         throw new RuntimeException(julLogger.getName() + " should not be loggable for WARNING.");
       julLogger.warning("Logged WARNING message in APPLICATION_LOGGER<br/>"); // not logged
 
       julLogger = FacesLogger.CONTEXT.getLogger();
       julLogger.warning("Logged WARNING message in CONTEXT_LOGGER<br/>"); // logged
+      if (julLogger.isLoggable(java.util.logging.Level.INFO)) 
+         throw new RuntimeException(julLogger.getName() + " should not be loggable for INFO.");
       julLogger.info("Logged INFO message in CONTEXT_LOGGER<br/>"); // not logged
 
       julLogger = FacesLogger.CONFIG.getLogger();
       julLogger.info("Logged INFO message in CONFIG_LOGGER<br/>"); // logged 
+      if (julLogger.isLoggable(java.util.logging.Level.FINE)) 
+         throw new RuntimeException(julLogger.getName() + " should not be loggable for FINE.");
       julLogger.fine("Logged FINE message in CONFIG_LOGGER<br/>"); // not logged
 
       julLogger = FacesLogger.LIFECYCLE.getLogger();
       julLogger.fine("Logged FINE message in LIFECYCLE_LOGGER<br/>"); // logged
+      if (julLogger.isLoggable(java.util.logging.Level.FINER)) 
+         throw new RuntimeException(julLogger.getName() + " should not be loggable for FINER.");
       julLogger.finer("Logged FINER message in LIFECYCLE_LOGGER<br/>"); // not logged
+      if (julLogger.isLoggable(java.util.logging.Level.FINEST)) 
+         throw new RuntimeException(julLogger.getName() + " should not be loggable for FINEST.");
+      julLogger.finest("Logged FINER message in LIFECYCLE_LOGGER<br/>"); // not logged
 
       julLogger = FacesLogger.TIMING.getLogger();
       julLogger.finer("Logged FINER message in TIMING_LOGGER<br/>"); // logged

Modified: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/web/test/JSFIntegrationUnitTestCase.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/web/test/JSFIntegrationUnitTestCase.java	2008-04-17 23:07:00 UTC (rev 72396)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/web/test/JSFIntegrationUnitTestCase.java	2008-04-17 23:07:36 UTC (rev 72397)
@@ -120,6 +120,7 @@
       assertFalse(contains(responseBody, "Logged FINE message in CONFIG_LOGGER"));
       assertTrue(contains(responseBody, "Logged FINE message in LIFECYCLE_LOGGER"));
       assertFalse(contains(responseBody, "Logged FINER message in LIFECYCLE_LOGGER"));
+      assertFalse(contains(responseBody, "Logged FINEST message in LIFECYCLE_LOGGER"));
       assertTrue(contains(responseBody, "Logged FINER message in TIMING_LOGGER"));
       assertTrue(contains(responseBody, "Logged FINEST message in TIMING_LOGGER"));
       assertTrue(contains(responseBody, "Logged FINEST message in MANAGEDBEAN_LOGGER"));




More information about the jboss-cvs-commits mailing list