]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.testing/src/org/simantics/db/testing/common/CommandSpec.java
Added missing org.simantics.db.{tests,testing} plug-ins.
[simantics/platform.git] / bundles / org.simantics.db.testing / src / org / simantics / db / testing / common / CommandSpec.java
diff --git a/bundles/org.simantics.db.testing/src/org/simantics/db/testing/common/CommandSpec.java b/bundles/org.simantics.db.testing/src/org/simantics/db/testing/common/CommandSpec.java
new file mode 100644 (file)
index 0000000..5edd59c
--- /dev/null
@@ -0,0 +1,14 @@
+package org.simantics.db.testing.common;
+
+
+public class CommandSpec<T extends Command> {
+       public Class<T> clazz;
+       public double weight;
+       private CommandSpec(Class<T> clazz, double weight) {
+               this.clazz = clazz;
+               this.weight = weight;
+       }
+       public static <T2 extends Command> CommandSpec<T2> make(Class<T2> clazz, double weight) {
+               return new CommandSpec<T2>(clazz, weight);
+       }
+}
\ No newline at end of file