diff options
author | Devan Goodwin <dgoodwin@rm-rf.ca> | 2009-11-02 09:27:57 -0400 |
---|---|---|
committer | Devan Goodwin <dgoodwin@rm-rf.ca> | 2009-11-02 09:27:57 -0400 |
commit | 760e9f2944de17e434a47cd86efa4bc6fb5946a1 (patch) | |
tree | 97f4ea3a30cd28c69bd0e187b7b226da3cc49411 /cobbler4j/src/org/fedorahosted/cobbler/FinderTests.java | |
parent | 2ead550f93ae31a8d92ad14870d9553aaefc06d1 (diff) | |
download | cobbler-760e9f2944de17e434a47cd86efa4bc6fb5946a1.tar.gz cobbler-760e9f2944de17e434a47cd86efa4bc6fb5946a1.tar.xz cobbler-760e9f2944de17e434a47cd86efa4bc6fb5946a1.zip |
Start junit4 testing example.
Requires ant-junit and junit4 packages installed.
Diffstat (limited to 'cobbler4j/src/org/fedorahosted/cobbler/FinderTests.java')
-rw-r--r-- | cobbler4j/src/org/fedorahosted/cobbler/FinderTests.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/cobbler4j/src/org/fedorahosted/cobbler/FinderTests.java b/cobbler4j/src/org/fedorahosted/cobbler/FinderTests.java new file mode 100644 index 00000000..01971385 --- /dev/null +++ b/cobbler4j/src/org/fedorahosted/cobbler/FinderTests.java @@ -0,0 +1,31 @@ +package org.fedorahosted.cobbler; + +import java.util.List; +import org.junit.Test; +import static org.junit.Assert.*; + +public class FinderTests { + + public static final String user = "testing"; + public static final String pass = "testing"; + + /* + public static void main(String[] args) { + + if (args.length < 1) { + throw new RuntimeException("API endpoint required"); + } + String endPoint = args[0]; + System.out.println("Running cobbler4j tests against " + endPoint); + CobblerConnection conn = new CobblerConnection(endPoint,user,pass); + List<Distro> distros = (List<Distro>)Finder.getInstance(). + listItems(conn, ObjectType.DISTRO); + System.out.println(distros.get(0)); + } + */ + + @Test public void testSomething() { + assertTrue(true); + } + +} |