summaryrefslogtreecommitdiffstats
path: root/cobbler4j/src/org/fedorahosted/cobbler/FinderTests.java
diff options
context:
space:
mode:
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);
+ }
+
+}