[P-unit-devel] SF.net SVN: p-unit: [9] trunk/punit
Status: Beta
Brought to you by:
zhanghuangzhu
|
From: <zha...@us...> - 2007-05-09 19:57:20
|
Revision: 9
http://p-unit.svn.sourceforge.net/p-unit/?rev=9&view=rev
Author: zhanghuangzhu
Date: 2007-05-09 12:57:21 -0700 (Wed, 09 May 2007)
Log Message:
-----------
Andrew Zhang: defined Test interface.
Added Paths:
-----------
trunk/punit/src/org/punit/type/Alphabetical.java
trunk/punit/src/org/punit/type/Test.java
trunk/punit.test/src/tests/sample/testcase/PUnitTestSample.java
Added: trunk/punit/src/org/punit/type/Alphabetical.java
===================================================================
--- trunk/punit/src/org/punit/type/Alphabetical.java (rev 0)
+++ trunk/punit/src/org/punit/type/Alphabetical.java 2007-05-09 19:57:21 UTC (rev 9)
@@ -0,0 +1,5 @@
+package org.punit.type;
+
+public interface Alphabetical {
+
+}
Added: trunk/punit/src/org/punit/type/Test.java
===================================================================
--- trunk/punit/src/org/punit/type/Test.java (rev 0)
+++ trunk/punit/src/org/punit/type/Test.java 2007-05-09 19:57:21 UTC (rev 9)
@@ -0,0 +1,9 @@
+package org.punit.type;
+
+public interface Test {
+
+ public void setUpBeforeWatchers();
+
+ public void tearDownAfterWatchers();
+
+}
Added: trunk/punit.test/src/tests/sample/testcase/PUnitTestSample.java
===================================================================
--- trunk/punit.test/src/tests/sample/testcase/PUnitTestSample.java (rev 0)
+++ trunk/punit.test/src/tests/sample/testcase/PUnitTestSample.java 2007-05-09 19:57:21 UTC (rev 9)
@@ -0,0 +1,28 @@
+package tests.sample.testcase;
+
+import org.punit.runner.*;
+import org.punit.type.*;
+
+public class PUnitTestSample implements Test {
+
+ public static void main(String[] args) {
+ new PUnitRunner().run(PUnitTestSample.class);
+ }
+
+ public void test1() {
+
+ }
+
+ public void test2() {
+
+ }
+
+ public void setUpBeforeWatchers() {
+ throw new UnsupportedOperationException();
+ }
+
+ public void tearDownAfterWatchers() {
+ throw new UnsupportedOperationException();
+ }
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|