Package org.eurekastreams.server.domain

Examples of org.eurekastreams.server.domain.HasEmail


    public void testNotifyMultiple() throws Exception
    {
        commonSetup();

        final Object actorEmail = "actor@eurekastreams.org";
        final HasEmail actor = mockery.mock(HasEmail.class, "actor");
        mockery.checking(new Expectations()
        {
            {
                allowing(actor).getEmail();
                will(returnValue(actorEmail));
View Full Code Here


    @Test
    public void testNotifyActorBadEmail() throws Exception
    {
        commonSetup();

        final HasEmail actor = mockery.mock(HasEmail.class, "actor");
        mockery.checking(new Expectations()
        {
            {
                allowing(actor).getEmail();
                will(returnValue(" "));
View Full Code Here

            if (template.getReplyAddressType() == ReplyAction.ACTOR)
            {
                Object obj = inProperties.get(NotificationPropertyKeys.ACTOR);
                if (obj instanceof HasEmail)
                {
                    HasEmail actor = (HasEmail) obj;
                    String actorEmail = actor.getEmail();
                    if (StringUtils.isNotBlank(actorEmail))
                    {
                        email.setReplyTo(actorEmail);
                    }
                }
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.domain.HasEmail

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.