示例#1
0
 public JqmSimpleTest addDefParameter(String key, String value) {
   em.getTransaction().begin();
   JobDefParameter jdp = CreationTools.createJobDefParameter(key, value, em);
   this.jd.getParameters().add(jdp);
   em.getTransaction().commit();
   return this;
 }
示例#2
0
 private JqmSimpleTest(EntityManager em, String className, String artifactName) {
   this.em = em;
   this.jd =
       CreationTools.createJobDef(
           null,
           true,
           className,
           new ArrayList<JobDefParameter>(),
           "jqm-tests/" + artifactName + "/target/test.jar",
           TestHelpers.qVip,
           -1,
           "TestJqmApplication",
           "appFreeName",
           "TestModule",
           "kw1",
           "kw2",
           "kw3",
           false,
           em);
   nodeNames.add("localhost");
 }