Package org.apache.roller.weblogger.webservices.adminprotocol.sdk

Examples of org.apache.roller.weblogger.webservices.adminprotocol.sdk.UserEntrySet


import org.apache.roller.weblogger.webservices.adminapi.AappTest;
import org.jdom.JDOMException;

public class UserEntryTest extends AappTest {
    public void testEquals() {
        UserEntrySet ues1 = getSampleUserEntrySet();
        UserEntrySet ues2 = getSampleUserEntrySet();
       
        assertEquals(ues1, ues2);
    }
View Full Code Here


        assertEquals(ues1, ues2);
    }
   
    public void testDocumentMarshal() {
        try {
            UserEntrySet ues1 = getSampleUserEntrySet();
            Document d = ues1.toDocument();
           
            UserEntrySet ues2 = new UserEntrySet(d, getEndpointUrl());
           
            assertEquals(ues1, ues2);
        } catch (UnexpectedRootElementException uree) {
            fail(uree.getMessage());
        }
View Full Code Here

        }
    }
   
    public void testStreamMarshal() {
        try {
            UserEntrySet ues1 = getSampleUserEntrySet();
            String s = ues1.toString();
            InputStream stream = new ByteArrayInputStream(s.getBytes("UTF-8"));
           
            UserEntrySet ues2 = new UserEntrySet(stream, getEndpointUrl());
           
            assertEquals(ues1, ues2);
        } catch (UnexpectedRootElementException uree) {
            fail(uree.getMessage());
        } catch (IOException ioe) {
View Full Code Here

    public RollerUserHandler(HttpServletRequest request) throws HandlerException {
        super(request);
    }
   
    protected EntrySet getEntrySet(Document d) throws UnexpectedRootElementException {
        return new UserEntrySet(d, getUrlPrefix());
    }
View Full Code Here

   
    private UserEntrySet toUserEntrySet(User[] uds) {
        if (uds == null) {
            throw new NullPointerException("ERROR: Null user data not allowed");
        }
        UserEntrySet ues = new UserEntrySet(getUrlPrefix());
       
        List entries = new ArrayList();
        for (int i = 0; i < uds.length; i++) {
            User ud = uds[i];
            Entry entry = toUserEntry(ud);
            entries.add(entry);
        }
        ues.setEntries((Entry[])entries.toArray(new Entry[0]));
       
        return ues;
    }
View Full Code Here

TOP

Related Classes of org.apache.roller.weblogger.webservices.adminprotocol.sdk.UserEntrySet

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.