summaryrefslogtreecommitdiffstats
path: root/cobbler4j/src/org/fedorahosted/cobbler/FinderTests.java
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@rm-rf.ca>2009-11-02 09:27:57 -0400
committerDevan Goodwin <dgoodwin@rm-rf.ca>2009-11-02 09:27:57 -0400
commit760e9f2944de17e434a47cd86efa4bc6fb5946a1 (patch)
tree97f4ea3a30cd28c69bd0e187b7b226da3cc49411 /cobbler4j/src/org/fedorahosted/cobbler/FinderTests.java
parent2ead550f93ae31a8d92ad14870d9553aaefc06d1 (diff)
downloadcobbler-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.java31
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);
+ }
+
+}