Author: hoang_to
Date: 2011-06-29 22:16:49 -0400 (Wed, 29 Jun 2011)
New Revision: 6776
Modified:
portal/branches/branch-GTNPORTAL-1921/component/web/resources/src/test/java/org/exoplatform/portal/resource/TestSkinService.java
Log:
Add missing case in reflection code of TestSkinService
Modified:
portal/branches/branch-GTNPORTAL-1921/component/web/resources/src/test/java/org/exoplatform/portal/resource/TestSkinService.java
===================================================================
---
portal/branches/branch-GTNPORTAL-1921/component/web/resources/src/test/java/org/exoplatform/portal/resource/TestSkinService.java 2011-06-29
10:23:05 UTC (rev 6775)
+++
portal/branches/branch-GTNPORTAL-1921/component/web/resources/src/test/java/org/exoplatform/portal/resource/TestSkinService.java 2011-06-30
02:16:49 UTC (rev 6776)
@@ -28,6 +28,7 @@
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.lang.reflect.Method;
+import java.lang.reflect.Modifier;
import java.net.URL;
import java.util.Collection;
import java.util.HashMap;
@@ -206,7 +207,14 @@
try
{
- method.invoke(skinService, arguments);
+ if(Modifier.isStatic(method.getModifiers()))
+ {
+ method.invoke(null, arguments);
+ }
+ else
+ {
+ method.invoke(skinService, arguments);
+ }
}
catch(Exception ex)
{
Show replies by date