Package javax.naming

Examples of javax.naming.InitialContext.composeName()


        assertNull(result);

        result = initialContext.composeName("a/b/c", (String) null); //$NON-NLS-1$ //$NON-NLS-2$
        assertEquals("a/b/c", result); //$NON-NLS-1$
       
        result = initialContext.composeName("a/b/c", ""); //$NON-NLS-1$ //$NON-NLS-2$
        assertEquals("a/b/c", result); //$NON-NLS-1$
       
        result = initialContext.composeName("a/b/c", "prefix"); //$NON-NLS-1$ //$NON-NLS-2$
        assertEquals("a/b/c", result); //$NON-NLS-1$
View Full Code Here


        assertEquals("a/b/c", result); //$NON-NLS-1$
       
        result = initialContext.composeName("a/b/c", ""); //$NON-NLS-1$ //$NON-NLS-2$
        assertEquals("a/b/c", result); //$NON-NLS-1$
       
        result = initialContext.composeName("a/b/c", "prefix"); //$NON-NLS-1$ //$NON-NLS-2$
        assertEquals("a/b/c", result); //$NON-NLS-1$

        result = initialContext.composeName("testString", "a/b/c/d"); //$NON-NLS-1$ //$NON-NLS-2$
        assertEquals("testString", result); //$NON-NLS-1$
    }
View Full Code Here

        assertEquals("a/b/c", result); //$NON-NLS-1$
       
        result = initialContext.composeName("a/b/c", "prefix"); //$NON-NLS-1$ //$NON-NLS-2$
        assertEquals("a/b/c", result); //$NON-NLS-1$

        result = initialContext.composeName("testString", "a/b/c/d"); //$NON-NLS-1$ //$NON-NLS-2$
        assertEquals("testString", result); //$NON-NLS-1$
    }

    public void testComposeName_string_pfx_null() throws NamingException {
        log.setMethod("testComposeName_string_pfx_null");
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.