Examples of HasEmail


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

Examples of org.eurekastreams.server.domain.HasEmail

    @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

Examples of org.eurekastreams.server.domain.HasEmail

            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
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.