Package mireka.address

Examples of mireka.address.DomainPart


    }

    @Test
    public final void testNormalReversePath() {
        Srs srs = new Srs();
        srs.setDefaultRemotePart(new DomainPart("example.net"));
        srs.setLocalDomains(localDomains);
        srs.setSecretKey("19AF");

        ReversePath originalReversePath =
                new MailAddressFactory()
View Full Code Here


    }

    @Test
    public final void testSrs0ReversePath() {
        Srs srs = new Srs();
        srs.setDefaultRemotePart(new DomainPart("we.example.net"));
        srs.setLocalDomains(localDomains);
        srs.setSecretKey("19AF");

        ReversePath originalReversePath =
                new MailAddressFactory()
View Full Code Here

    }

    @Test
    public final void testSrs1ReversePath() {
        Srs srs = new Srs();
        srs.setDefaultRemotePart(new DomainPart("we.example.net"));
        srs.setLocalDomains(localDomains);
        srs.setSecretKey("19AF");

        ReversePath originalReversePath =
                new MailAddressFactory()
View Full Code Here

    public final void testPerlCompatibility() throws InvalidSrsException {
        // Test values are coming from the SRS-0.31 PERL module on
        // the date which is included in the setup function.

        Srs srs = new Srs();
        srs.setDefaultRemotePart(new DomainPart("hostb.com"));
        srs.setLocalDomains(localDomains);
        srs.setSecretKeyString("secret");

        String rp0 = forward(srs, "usera@hosta.com", "userb@hostb.com");
        assertEquals("SRS0=VtG6=2I=hosta.com=usera@hostb.com", rp0);
        assertEquals("usera@hosta.com", reverse(srs, rp0));

        srs.setDefaultRemotePart(new DomainPart("hostc.com"));
        String rp1 = forward(srs, rp0, "userc@hostc.com");
        assertEquals("SRS1=IC2k=hostb.com==VtG6=2I=hosta.com=usera@hostc.com",
                rp1);
        assertEquals(rp0, reverse(srs, rp1));

        srs.setDefaultRemotePart(new DomainPart("hostd.com"));
        String rp2 = forward(srs, rp1, "userd@hostd.com");
        assertEquals("SRS1=IC2k=hostb.com==VtG6=2I=hosta.com=usera@hostd.com",
                rp2);
        assertEquals(rp0, reverse(srs, rp2));
    }
View Full Code Here

TOP

Related Classes of mireka.address.DomainPart

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.