Skip to content

Commit edc2b9e

Browse files
author
jossonsmith
committed
Add TestSuite tests.
1 parent 3804a68 commit edc2b9e

File tree

1 file changed

+42
-0
lines changed
  • tests/net.sf.j2s.test.junit/src/net/sf/j2s/test/junit

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*******************************************************************************
2+
* Java2Script Pacemaker (http://j2s.sourceforge.net)
3+
*
4+
* Copyright (c) 2006 ognize.com and others.
5+
* All rights reserved. This program and the accompanying materials
6+
* are made available under the terms of the Eclipse Public License v1.0
7+
* which accompanies this distribution, and is available at
8+
* http://www.eclipse.org/legal/epl-v10.html
9+
*
10+
* Contributors:
11+
* ognize.com - initial API and implementation
12+
*******************************************************************************/
13+
14+
package net.sf.j2s.test.junit;
15+
16+
import junit.framework.Test;
17+
import junit.framework.TestCase;
18+
import junit.framework.TestSuite;
19+
20+
/**
21+
* @author josson smith
22+
*
23+
* 2006-8-17
24+
*/
25+
public class AllTests extends TestCase {
26+
27+
public void testOne() {
28+
System.out.println("Hello One");
29+
}
30+
31+
public static void main(String[] args) {
32+
junit.textui.TestRunner.run(AllTests.suite());
33+
}
34+
public static Test suite() {
35+
TestSuite suite = new TestSuite("Test for net.sf.j2s.test.junit");
36+
//$JUnit-BEGIN$
37+
suite.addTestSuite(StringTest.class);
38+
suite.addTestSuite(IntegerTest.class);
39+
//$JUnit-END$
40+
return suite;
41+
}
42+
}

0 commit comments

Comments
 (0)