mustang/src/test/java/org/mustangproject/ZUGFeRD/MustangReaderWriterTest.java
public void testAImport() throws IOException
  {
    ZUGFeRDImporter zi = new ZUGFeRDImporter();
    InputStream inputStream = this.getClass().getResourceAsStream("/MustangGnuaccountingBeispielRE-20151008_504.pdf");
    zi.extractLowLevel(inputStream);
    // Reading ZUGFeRD

    String amount = null;
    String bic = null;
    String iban = null;
    String holder = null;
    String ref = null;

    if (zi.canParse())
    {
      zi.parse();
      amount = zi.getAmount();
      bic = zi.getBIC();
      iban = zi.getIBAN();
      holder = zi.getHolder();
      ref = zi.getForeignReference();
    }

    assertEquals(amount, "571.04");
    assertEquals(bic, getOwnBIC());
    assertEquals(iban, getOwnIBAN());
    assertEquals(holder, getOwnOrganisationName());
    assertEquals(ref, getNumber());

  }
/**
   * The importer test imports from ./src/test/MustangGnuaccountingBeispielRE-20151008_504.pdf to check the values.
   * --> as only Name Ascending is supported for Test Unit sequence, I renamed the this test-A-Export to run before
   * testZExport
   * 
   * @throws IOException
   */
The importer test imports from ./src/test/MustangGnuaccountingBeispielRE-20151008_504.pdf to check the values.
> as only Name Ascending is supported for Test Unit sequence, I renamed the this test-A-Export to run before
testZExport


The importer test imports from . / src / test / MustangGnuaccountingBeispielRE - 20151008_504 . pdf to check the values . > as only Name Ascending is supported for Test Unit sequence I renamed the this test - A - Export to run before testZExport
public void testAImport() throws IOException
  {
    ZUGFeRDImporter zi = new ZUGFeRDImporter();
    InputStream inputStream = this.getClass().getResourceAsStream("/MustangGnuaccountingBeispielRE-20151008_504.pdf");
    zi.extractLowLevel(inputStream);
    String amount = null;
    String bic = null;
    String iban = null;
    String holder = null;
    String ref = null;
    if (zi.canParse())
    {
      zi.parse();
      amount = zi.getAmount();
      bic = zi.getBIC();
      iban = zi.getIBAN();
      holder = zi.getHolder();
      ref = zi.getForeignReference();
    }
    assertEquals(amount, "571.04");
    assertEquals(bic, getOwnBIC());
    assertEquals(iban, getOwnIBAN());
    assertEquals(holder, getOwnOrganisationName());
    assertEquals(ref, getNumber());
  }
public void testAImport ( ) throws IOException { ZUGFeRDImporter zi = new ZUGFeRDImporter ( ) ; InputStream inputStream = this . getClass ( ) . getResourceAsStream ( "/MustangGnuaccountingBeispielRE-20151008_504.pdf" ) ; zi . extractLowLevel ( inputStream ) ; String amount = null ; String bic = null ; String iban = null ; String holder = null ; String ref = null ; if ( zi . canParse ( ) ) { zi . parse ( ) ; amount = zi . getAmount ( ) ; bic = zi . getBIC ( ) ; iban = zi . getIBAN ( ) ; holder = zi . getHolder ( ) ; ref = zi . getForeignReference ( ) ; } assertEquals ( amount , "571.04" ) ; assertEquals ( bic , getOwnBIC ( ) ) ; assertEquals ( iban , getOwnIBAN ( ) ) ; assertEquals ( holder , getOwnOrganisationName ( ) ) ; assertEquals ( ref , getNumber ( ) ) ; }
The importer test imports from ./src/test/MustangGnuaccountingBeispielRE-20151008_504.pdf to check the values.
The importer test imports from . / src / test / MustangGnuaccountingBeispielRE - 20151008_504 . pdf to check the values .
// Reading ZUGFeRD