[Fb-contrib-commit] SF.net SVN: fb-contrib:[1492] trunk/fb-contrib/samples/ROOM_Sample.java
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2010-01-18 17:01:00
|
Revision: 1492
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1492&view=rev
Author: dbrosius
Date: 2010-01-18 17:00:51 +0000 (Mon, 18 Jan 2010)
Log Message:
-----------
add test with class array in a static
Modified Paths:
--------------
trunk/fb-contrib/samples/ROOM_Sample.java
Modified: trunk/fb-contrib/samples/ROOM_Sample.java
===================================================================
--- trunk/fb-contrib/samples/ROOM_Sample.java 2010-01-18 16:59:58 UTC (rev 1491)
+++ trunk/fb-contrib/samples/ROOM_Sample.java 2010-01-18 17:00:51 UTC (rev 1492)
@@ -3,6 +3,8 @@
public class ROOM_Sample
{
+ public static final Class[] NO_ARGS = new Class[0];
+
public void testRoomWithLocals() throws Exception
{
Class c = Class.forName("java.lang.Object");
@@ -10,4 +12,12 @@
String s = (String)m.invoke(this, new ROOM_Sample());
}
+
+ public void testRoomWithStatic() throws Exception
+ {
+ Class c = Class.forName("java.lang.Object");
+ Method m = c.getMethod("toString", NO_ARGS);
+
+ String s = (String)m.invoke(this, null);
+ }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|