Package mireka.transmission.immediate

Examples of mireka.transmission.immediate.ResponseParser


    @Test
    public void testCreateResponseLookingForEnhancedStatusCode_original() {
        Response srcResponse = new Response(500, ENHANCED_EXAMPLE);
        MailSystemStatus basicResponse =
                new ResponseParser()
                        .createResponseLookingForEnhancedStatusCode(srcResponse);
        assertThat(basicResponse, instanceOf(EnhancedStatus.class));
        EnhancedStatus enhancedResponse = (EnhancedStatus) basicResponse;
        assertEquals("5.7.1", enhancedResponse.getEnhancedStatusCode());
View Full Code Here


    @Test
    public void testCreateResponseLookingForEnhancedStatusCode_enhanced() {
        Response srcResponse = new Response(500, ORIGINAL_EXAMPLE);
        MailSystemStatus basicResponse =
                new ResponseParser()
                        .createResponseLookingForEnhancedStatusCode(srcResponse);
        assertThat(basicResponse, instanceOf(Rfc821Status.class));

        assertEquals("Delivery not authorized, message refused", basicResponse
                .getMessage());
View Full Code Here

TOP

Related Classes of mireka.transmission.immediate.ResponseParser

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.