click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r907235 - /click/trunk/click/mock/src/org/apache/click/MockContext.java
Date Sat, 06 Feb 2010 15:40:52 GMT
Author: sabob
Date: Sat Feb  6 15:40:51 2010
New Revision: 907235

URL: http://svn.apache.org/viewvc?rev=907235&view=rev
Log:
removed ConsoleLogService dependency. CLK-623

Modified:
    click/trunk/click/mock/src/org/apache/click/MockContext.java

Modified: click/trunk/click/mock/src/org/apache/click/MockContext.java
URL: http://svn.apache.org/viewvc/click/trunk/click/mock/src/org/apache/click/MockContext.java?rev=907235&r1=907234&r2=907235&view=diff
==============================================================================
--- click/trunk/click/mock/src/org/apache/click/MockContext.java (original)
+++ click/trunk/click/mock/src/org/apache/click/MockContext.java Sat Feb  6 15:40:51 2010
@@ -279,8 +279,10 @@
             ActionEventDispatcher.pushThreadLocalDispatcher(controlRegistry);
             Context.pushThreadLocalContext(mockContext);
 
-            ConsoleLogService logService = (ConsoleLogService) ClickUtils.getLogService();
-            logService.setLevel(ConsoleLogService.TRACE_LEVEL);
+            if (ClickUtils.getLogService() instanceof ConsoleLogService) {
+                ConsoleLogService logService = (ConsoleLogService) ClickUtils.getLogService();
+                logService.setLevel(ConsoleLogService.TRACE_LEVEL);
+            }
             return (MockContext) Context.getThreadLocalContext();
         } catch (Exception e) {
             throw new MockContainer.CleanRuntimeException(e);



Mime
View raw message