diff gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/TestArtifactDatabase.java @ 540:80630520e25a

merged gnv-artifacts/0.4
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:13:49 +0200
parents 9e5ed3eebf29
children e0d7b8a0bc42
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gnv-artifacts/src/test/java/de/intevation/gnv/artifacts/TestArtifactDatabase.java	Fri Sep 28 12:13:49 2012 +0200
@@ -0,0 +1,96 @@
+/**
+ *
+ */
+package de.intevation.gnv.artifacts;
+
+import org.w3c.dom.Document;
+
+import de.intevation.artifacts.ArtifactDatabase;
+import de.intevation.artifacts.ArtifactDatabaseException;
+import de.intevation.artifacts.ArtifactFactory;
+import de.intevation.artifacts.CallMeta;
+
+/**
+ * @author Tim Englich <tim.englich@intevation.de>
+ *
+ */
+public class TestArtifactDatabase implements ArtifactDatabase {
+
+    private ArtifactFactory artifactFactory = null;
+    /**
+     * Constructor
+     */
+    public TestArtifactDatabase(ArtifactFactory artifactFactory) {
+        this.artifactFactory = artifactFactory;
+    }
+
+    /**
+     * @see de.intevation.artifacts.ArtifactDatabase#advance(java.lang.String, org.w3c.dom.Document, de.intevation.artifacts.CallMeta)
+     */
+    public Document advance(String artifact, Document target, CallMeta callMeta)
+                                                                                throws ArtifactDatabaseException {
+
+        return null;
+    }
+
+    /**
+     * @see de.intevation.artifacts.ArtifactDatabase#artifactFactoryNamesAndDescriptions()
+     */
+    public String[][] artifactFactoryNamesAndDescriptions() {
+
+        return null;
+    }
+
+    /**
+     * @see de.intevation.artifacts.ArtifactDatabase#createArtifactWithFactory(java.lang.String, de.intevation.artifacts.CallMeta)
+     */
+    public Document createArtifactWithFactory(String factory, CallMeta callMeta)
+                                                                                throws ArtifactDatabaseException {
+
+        return null;
+    }
+
+    /**
+     * @see de.intevation.artifacts.ArtifactDatabase#describe(java.lang.String, org.w3c.dom.Document, de.intevation.artifacts.CallMeta)
+     */
+    public Document describe(String artifact, Document data, CallMeta callMeta)
+                                                                               throws ArtifactDatabaseException {
+
+        return null;
+    }
+
+    /**
+     * @see de.intevation.artifacts.ArtifactDatabase#feed(java.lang.String, org.w3c.dom.Document, de.intevation.artifacts.CallMeta)
+     */
+    public Document feed(String artifact, Document data, CallMeta callMeta)
+                                                                           throws ArtifactDatabaseException {
+
+        return null;
+    }
+
+    /**
+     * @see de.intevation.artifacts.ArtifactDatabase#getInternalArtifactFactory(java.lang.String)
+     */
+    public ArtifactFactory getInternalArtifactFactory(String factoryName) {
+        return this.artifactFactory;
+    }
+
+    /**
+     * @see de.intevation.artifacts.ArtifactDatabase#out(java.lang.String, org.w3c.dom.Document, de.intevation.artifacts.CallMeta)
+     */
+    public DeferredOutput out(String artifact, Document format,
+                              CallMeta callMeta)
+                                                throws ArtifactDatabaseException {
+
+        return null;
+    }
+
+    public Document process(String service, Document input, CallMeta callMeta) {
+        return null;
+    }
+
+    public String[][] serviceNamesAndDescriptions() {
+        return null;
+    }
+
+}

http://dive4elements.wald.intevation.org