class TestModelFixtures {
private TestModelFixtures() { }
static Map<String, Object> buildStubbingModel() {
Param param1 = new Param("arg1", Type.INT_TYPE, 0);
Param param2 = new Param("arg2", Type.LONG_ARRAY_TYPE, 1);
Param param3 = new Param("arg3", Type.STRING_ARRAY_TYPE, 2);
Type retType = Type.STRING_ARRAY_TYPE;
Method method = new Method("TestMethod", retType, new Param[]{param1, param2, param3});
String[] valueList0 = new String[]{"919, 111, 234", "234, 567, 555"};
String[] valueList1 = new String[]{"\"a\", \"b\", \"c\"", "\"d\""};
String[] valueList2 = new String[]{"\"abcd\", \"efg\"", "\"123\", \"456\""};
Testcase case0 = new Testcase(0, new ParamValue[]{
new ParamValue(param1, "15"),
new ParamValue(param2, valueList0),
new ParamValue(param3, valueList1)
}, new ParamValue(new Param("return", retType, 0), valueList2));
Problem problem = new Problem("Test", 250, "TestClass", 2000, 256, method, new Testcase[]{case0}, null);
Map<String, Object> model = new HashMap<String, Object>();
model.put("Problem", problem);