[Fb-contrib-commit] SF.net SVN: fb-contrib:[1499] trunk/fb-contrib/samples/ROOM_Sample.java
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2010-01-19 01:27:55
|
Revision: 1499
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1499&view=rev
Author: dbrosius
Date: 2010-01-19 00:20:13 +0000 (Tue, 19 Jan 2010)
Log Message:
-----------
add more tests
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 17:32:47 UTC (rev 1498)
+++ trunk/fb-contrib/samples/ROOM_Sample.java 2010-01-19 00:20:13 UTC (rev 1499)
@@ -3,6 +3,7 @@
public class ROOM_Sample
{
+ public static final Class[] STATIC_NO_ARGS = new Class[0];
public final Class[] NO_ARGS = new Class[0];
public void testRoomWithLocals() throws Exception
@@ -18,14 +19,22 @@
Class c = Class.forName("java.lang.Object");
Method m = c.getMethod("toString", NO_ARGS);
- String s = (String)m.invoke(this, null);
+ String s = (String)m.invoke(this, (Object[])null);
}
+ public void testRoomWithStatic() throws Exception
+ {
+ Class c = Class.forName("java.lang.Object");
+ Method m = c.getMethod("hashCode", STATIC_NO_ARGS);
+
+ String s = (String)m.invoke(this, (Object[])null);
+ }
+
public void testRoomWithNull() throws Exception
{
Class c = Class.forName("java.lang.Object");
- Method m = c.getMethod("notify", null);
+ Method m = c.getMethod("notify", (Class[])null);
- String s = (String)m.invoke(this, null);
+ String s = (String)m.invoke(this, (Object[])null);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|