[P-unit-devel] SF.net SVN: p-unit: [8] trunk/punit
Status: Beta
Brought to you by:
zhanghuangzhu
|
From: <zha...@us...> - 2007-05-09 19:47:23
|
Revision: 8
http://p-unit.svn.sourceforge.net/p-unit/?rev=8&view=rev
Author: zhanghuangzhu
Date: 2007-05-09 12:47:22 -0700 (Wed, 09 May 2007)
Log Message:
-----------
Andrew Zhang: defined VMComparable interface
Added Paths:
-----------
trunk/punit/src/org/punit/type/VM.java
trunk/punit/src/org/punit/type/VMComparable.java
trunk/punit.test/src/tests/sample/testcase/VMTestSample.java
Added: trunk/punit/src/org/punit/type/VM.java
===================================================================
--- trunk/punit/src/org/punit/type/VM.java (rev 0)
+++ trunk/punit/src/org/punit/type/VM.java 2007-05-09 19:47:22 UTC (rev 8)
@@ -0,0 +1,21 @@
+package org.punit.type;
+
+public class VM {
+ private String _vmPath;
+
+ private String _vmName;
+
+ public VM(String path, String name) {
+ super();
+ _vmPath = path;
+ _vmName = name;
+ }
+
+ public String vmName() {
+ return _vmName;
+ }
+
+ public String vmPath() {
+ return _vmPath;
+ }
+}
Added: trunk/punit/src/org/punit/type/VMComparable.java
===================================================================
--- trunk/punit/src/org/punit/type/VMComparable.java (rev 0)
+++ trunk/punit/src/org/punit/type/VMComparable.java 2007-05-09 19:47:22 UTC (rev 8)
@@ -0,0 +1,5 @@
+package org.punit.type;
+
+public interface VMComparable {
+public VM[] vms();
+}
Added: trunk/punit.test/src/tests/sample/testcase/VMTestSample.java
===================================================================
--- trunk/punit.test/src/tests/sample/testcase/VMTestSample.java (rev 0)
+++ trunk/punit.test/src/tests/sample/testcase/VMTestSample.java 2007-05-09 19:47:22 UTC (rev 8)
@@ -0,0 +1,32 @@
+package tests.sample.testcase;
+
+import org.punit.runner.*;
+import org.punit.type.*;
+
+public class VMTestSample implements VMComparable {
+
+ public static void main(String[] args) {
+ new PUnitRunner().run(VMTestSample.class);
+ }
+
+ public void test1() {
+
+ }
+
+ public void test2() {
+
+ }
+
+ public Class[] implmentators() {
+ throw new UnsupportedOperationException();
+ }
+
+ public Class testInterface() {
+ throw new UnsupportedOperationException();
+ }
+
+ public VM[] vms() {
+ throw new UnsupportedOperationException();
+ }
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|