Package org.cedj.geekseek.domain.attachment.model

Examples of org.cedj.geekseek.domain.attachment.model.Attachment


        att.setTitle(null);
    }

    @Test(expected = IllegalArgumentException.class)
    public void shouldNotAllowNullSetterMimeType() throws Exception {
        Attachment att = new Attachment("", "", new URL("http://geekseek.org"));
        att.setMimeType(null);
    }
View Full Code Here


        att.setMimeType(null);
    }

    @Test(expected = IllegalArgumentException.class)
    public void shouldNotAllowNullSetterUrl() throws Exception {
        Attachment att = new Attachment("", "", new URL("http://geekseek.org"));
        att.setUrl(null);
    }
View Full Code Here

        return rep;
    }

    @Override
    public Attachment to(UriInfo uriInfo, AttachmentRepresentation representation) {
        Attachment attachment = new Attachment(
            representation.getTitle(),
            representation.getMimeType(),
            representation.getUrl());
        return attachment;
    }
View Full Code Here

TOP

Related Classes of org.cedj.geekseek.domain.attachment.model.Attachment

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.