Package org.kapott.hbci.GV

Examples of org.kapott.hbci.GV.HBCIJob


   */
  @Test
  public void test001() throws Exception
  {
    System.out.println("---------Erstelle Job");
    HBCIJob job =  handler.newJob("UebSEPA");

   
//    //Mal schauen welche Konten ich habe
//    int i = 0;
//    for(Konto konto : passport.getAccounts()){
//      System.out.println("Konto " + i +": " + konto);
//      i++;
//    }
   
    job.setParam("src",passport.getAccounts()[2]);
    job.setParam("dst",passport.getAccounts()[0]);
    job.setParam("btg",new Value(100L,"EUR"));
    job.setParam("usage","Hello SEPA Ueberweisung");

   
    System.out.println("---------F�r Job zur Queue");
    job.addToQueue();

   
    HBCIExecStatus ret = handler.execute();
    HBCIJobResult res = job.getJobResult();
    System.out.println("----------Result: "+res.toString());
     
   
    Assert.assertEquals("Job Result ist nicht OK!", true, res.isOK());
   
View Full Code Here


public class TestGVTermUebSEPA extends AbstractTestGV {
   
    @Test
    public void test() {
        System.out.println("---------Erstelle Job");
        HBCIJob job =  handler.newJob("TermUebSEPA");
       
        Konto acc = new Konto();
        acc.blz = params.getProperty("target_blz");
        acc.number = params.getProperty("target_number");
        acc.name = "Kurt Mustermann";
        acc.bic = params.getProperty("target_bic");
        acc.iban = params.getProperty("target_iban");
       
        int source_acc_idx = Integer.parseInt(params.getProperty("source_account_idx"));
        job.setParam("src",passport.getAccounts()[source_acc_idx]);
        job.setParam("dst",acc);
       
        String value = params.getProperty("value");
        if(value == null) value = "100";
        job.setParam("btg",new Value(Integer.parseInt(value),"EUR"));
        job.setParam("usage",params.getProperty("usage"));
        job.setParam("date", params.getProperty("date"));
       
        System.out.println("---------F�r Job zur Queue");
        job.addToQueue();

       
        HBCIExecStatus ret = handler.execute();
        HBCIJobResult res = job.getJobResult();
        System.out.println("----------Result: "+res.toString());
       
        Assert.assertEquals("Job Result ist nicht OK!", true, res.isOK());
    }
View Full Code Here

   
   
    @Test
    public void test() {
        System.out.println("---------Erstelle Job");
        HBCIJob job =  handler.newJob(getJobname());
       
        int source_acc_idx = Integer.parseInt(params.getProperty("source_account_idx"));
        job.setParam("src",passport.getAccounts()[source_acc_idx]);
       
        System.out.println("---------F�r Job zur Queue");
        job.addToQueue();

       
        HBCIExecStatus ret = handler.execute();
        HBCIJobResult res = job.getJobResult();
        System.out.println("----------Result: "+res.toString());
       
        Assert.assertEquals("Job Result ist nicht OK!", true, res.isOK());
    }
View Full Code Here

   
   
    @Test
    public void test() {
        System.out.println("---------Erstelle Job");
        HBCIJob job =  handler.newJob("DauerSEPADel");
       
        Konto acc = new Konto();
        acc.blz = params.getProperty("target_blz");
        acc.number = params.getProperty("target_number");
        acc.name = "Kurt Mustermann";
        acc.bic = params.getProperty("target_bic");
        acc.iban = params.getProperty("target_iban");
       
        int source_acc_idx = Integer.parseInt(params.getProperty("source_account_idx"));
        job.setParam("src",passport.getAccounts()[source_acc_idx]);
        job.setParam("dst",acc);
        String value = params.getProperty("value");
        if(value == null) value = "100";
        job.setParam("btg",new Value(Integer.parseInt(value),"EUR"));
        job.setParam("usage","SEPA Dauerauftrag");
        job.setParam("firstdate", params.getProperty("firstdate"));
        job.setParam("timeunit", "M");
        job.setParam("turnus", "1");
        job.setParam("execday", "1");
        job.setParam("orderid", params.getProperty("orderid"));
       
        System.out.println("---------F�r Job zur Queue");
        job.addToQueue();

       
        HBCIExecStatus ret = handler.execute();
        HBCIJobResult res = job.getJobResult();
        System.out.println("----------Result: "+res.toString());
       
        Assert.assertEquals("Job Result ist nicht OK!", true, res.isOK());
    }
View Full Code Here

   */
  @Test
  public void testFetchSaldo() throws Exception
  {
    HBCIHandler handler = new HBCIHandler("210",passport);
    HBCIJob job = handler.newJob("SaldoReq");
   
    // wir nehmen wir die Saldo-Abfrage einfach das erste verfuegbare Konto
    job.setParam("my",passport.getAccounts()[0]);
    job.addToQueue();
    handler.execute();
  }
View Full Code Here

TOP

Related Classes of org.kapott.hbci.GV.HBCIJob

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.