Skip to content
Browse files

FIX: Handle models as File object as well

  • Loading branch information...
1 parent d8f54a2 commit fdc0cffd1a0cee5370065680aa216dcdc64e7b7e @KristianKarl committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/main/java/org/graphwalker/multipleModels/ModelAPI.java
View
6 src/main/java/org/graphwalker/multipleModels/ModelAPI.java
@@ -4,7 +4,6 @@
import org.graphwalker.ModelBasedTesting;
import org.graphwalker.generators.PathGenerator;
-import org.graphwalker.generators.RandomPathGenerator;
/**
* @author krikar Any test should extend this class.
@@ -33,6 +32,11 @@ public ModelAPI(String model) {
mbt.readGraph(model);
}
+ public ModelAPI(File model) {
+ mbt = new ModelBasedTesting();
+ mbt.readGraph(model);
+ }
+
public void setMbt(ModelBasedTesting mbt) {
this.mbt = mbt;
}

0 comments on commit fdc0cff

Please sign in to comment.
Something went wrong with that request. Please try again.