Package org.apache.james.mailbox.store.mail.model.impl

Examples of org.apache.james.mailbox.store.mail.model.impl.SimpleProperty


        // left to implement
    }

    @Test
    public void testPropertyToBytes() {
        final Property prop1 = new SimpleProperty("nspace", "localName", "test");
        byte[] value = getValue(prop1);
        final Property prop2 = getProperty(value);
        assertEquals(prop1.getNamespace(), prop2.getNamespace());
        assertEquals(prop1.getLocalName(), prop2.getLocalName());
        assertEquals(prop1.getValue(), prop2.getValue());
    }
View Full Code Here


        String[] parts = ns.split(SEPARATOR);
        if (parts.length != 3) {
            throw new RuntimeException("Separator not found in qualifier "
                    + Bytes.toString(value));
        }
        return new SimpleProperty(parts[0], parts[1], parts[2]);
    }
View Full Code Here

TOP

Related Classes of org.apache.james.mailbox.store.mail.model.impl.SimpleProperty

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.