Examples of PainVersion


Examples of org.kapott.hbci.sepa.PainVersion

     * @throws Exception
     */
    @Test(expected=IllegalArgumentException.class)
    public void test004() throws Exception
    {
        new PainVersion("urn:iso:std:iso:20022:tech:xsd:pain.001");
    }
View Full Code Here

Examples of org.kapott.hbci.sepa.PainVersion

     * @throws Exception
     */
    @Test(expected=IllegalArgumentException.class)
    public void test005() throws Exception
    {
        new PainVersion("urn:iso:std:iso:20022:tech:xsd:pain.001.001");
    }
View Full Code Here

Examples of org.kapott.hbci.sepa.PainVersion

    @Test
    public void test006() throws Exception
    {
        List<PainVersion> list = new ArrayList<PainVersion>()
        {{
            add(new PainVersion("urn:iso:std:iso:20022:tech:xsd:pain.001.001.01"));
            add(new PainVersion("urn:iso:std:iso:20022:tech:xsd:pain.001.002.03"));
            add(new PainVersion("urn:iso:std:iso:20022:tech:xsd:pain.001.003.03"));
            add(new PainVersion("urn:iso:std:iso:20022:tech:xsd:pain.001.001.02"));
        }};
       
        PainVersion highest = PainVersion.findGreatest(list);
        Assert.assertNotNull(highest);
        Assert.assertEquals(new PainVersion("urn:iso:std:iso:20022:tech:xsd:pain.001.003.03"),highest);
    }
View Full Code Here

Examples of org.kapott.hbci.sepa.PainVersion

    @Test(expected=IllegalArgumentException.class)
    public void test007() throws Exception
    {
        List<PainVersion> list = new ArrayList<PainVersion>()
        {{
            add(new PainVersion("urn:iso:std:iso:20022:tech:xsd:pain.001.002.03"));
            add(new PainVersion("urn:iso:std:iso:20022:tech:xsd:pain.008.001.01"));
            add(new PainVersion("urn:iso:std:iso:20022:tech:xsd:pain.001.003.03"));
            add(new PainVersion("urn:iso:std:iso:20022:tech:xsd:pain.001.001.02"));
        }};
       
        PainVersion.findGreatest(list);
    }
View Full Code Here

Examples of org.kapott.hbci.sepa.PainVersion

     * @throws Exception
     */
    @Test
    public void test008() throws Exception
    {
        PainVersion v = new PainVersion("urn:iso:std:iso:20022:tech:xsd:pain.001.003.03");
        Assert.assertTrue(v.isSupported("UebSEPA"));
    }
View Full Code Here

Examples of org.kapott.hbci.sepa.PainVersion

     * @throws Exception
     */
    @Test
    public void test009() throws Exception
    {
        PainVersion v = new PainVersion("urn:iso:std:iso:20022:tech:xsd:pain.001.004.03");
        Assert.assertFalse(v.isSupported("UebSEPA"));
    }
View Full Code Here

Examples of org.kapott.hbci.sepa.PainVersion

        {
            InputStream is = null;
            try
            {
                is = this.getStream(entry.getKey());
                PainVersion version = PainVersion.autodetect(is);
                Assert.assertEquals(version,entry.getValue());
            }
            finally
            {
                if (is != null)
View Full Code Here

Examples of org.kapott.hbci.sepa.PainVersion

    {
        InputStream is = null;
        try
        {
            is = this.getStream("sepa/test-pain-parse-none.xml");
            PainVersion version = PainVersion.autodetect(is);
            Assert.assertNull(version);
        }
        finally
        {
            if (is != null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.