Package no.kommune.bergen.soa.svarut.altinn.correspondence

Examples of no.kommune.bergen.soa.svarut.altinn.correspondence.CorrespondenceSettings


    this.latestMessage = message;
    return 1;
  }

  public static CorrespondenceSettings newSettings() {
    CorrespondenceSettings settings = new CorrespondenceSettings();
    settings.setNotificationType( "Melding fra Bergen kommune" );
    settings.setFromAddress( "einarvalen@gmail.com" );
    settings.setLanguageCode( "1044" );
    settings.setServiceCode( "1268" );
    settings.setEndpoint( "https://tt02.altinn.basefarm.net/ServiceEngineExternal/CorrespondenceAgencyExternalBasic.svc" );
    settings.setSystemUserName( "BK_meldinger" );
    settings.setSystemPassword( "UO6pXuIt" );
    settings.setSystemUserCode( "BK_meldinger" );
    settings.setServiceEdition( "1" );
    settings.setBodyTemplate( "<h1>$TITTEL</h1><p>$MELDING</p><p>For å åpne dokumentet, <a href='$Link'> Klikk her. </a>" );
    settings.setSubjectTemplate( "$TITTEL" );
    return settings;
  }
View Full Code Here


public class MessageNotificationTest {

    @Test
    public void testMessageNotificationContainsEmailAddressIfAddressNotNull() throws Exception {
        MessageNotification messageNotification = new MessageNotification(new CorrespondenceSettings(), "test@example.com");
        NotificationBEList notifications = messageNotification.getNotifications();

        assertEquals(1, notifications.getNotification().size());
        assertEquals(2, notifications.getNotification().get(0).getReceiverEndPoints().getReceiverEndPoint().size());
View Full Code Here

        assertEquals("test@example.com", mailEndpoint.getReceiverAddress());
    }

    @Test
    public void testMessageNotificationContainsEmailEmptyStringIfAddressIsNull() throws Exception {
        MessageNotification messageNotification = new MessageNotification(new CorrespondenceSettings(), "");
        NotificationBEList notifications = messageNotification.getNotifications();

        assertEquals(1, notifications.getNotification().size());
        assertEquals(2, notifications.getNotification().get(0).getReceiverEndPoints().getReceiverEndPoint().size());
View Full Code Here

  public static ForsendelsesArkiv createForsendesesArkiv() {
    JdbcHelper jdbcHelper = new JdbcHelper();
    jdbcHelper.createTable( "FORSENDELSESARKIV" );
    FileStore fileStore = new FileStore("target", new PdfGeneratorImpl("target"));
    CorrespondenceClient correspondenceClient = new CorrespondenceClient(new CorrespondenceSettings());
    AltinnFacade altinnFacade = new AltinnFacade(null, correspondenceClient, null, null);

    return new ForsendelsesArkiv( fileStore, jdbcHelper.getJdbcTemplate(), altinnFacade );
  }
View Full Code Here

TOP

Related Classes of no.kommune.bergen.soa.svarut.altinn.correspondence.CorrespondenceSettings

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.