Package com.volantis.charset.configuration

Examples of com.volantis.charset.configuration.Alias


                this.charsetMap.put(name, cs);
                ArrayList aliases = cs.getAlias();
                if(aliases != null) {
                    Iterator aliasIterator = aliases.iterator();
                    while(aliasIterator.hasNext()) {
                        Alias a = (Alias) aliasIterator.next();
                        charsetNameAliasMap.put(a.getName(), name);
                    }
                }
                // Check to see whether this charset needs preloading.
                if(cs.isPreload()) {
                    try {
View Full Code Here


        assertTrue("Preload attribute is false", cs.isPreload());
       
        ArrayList aliases = cs.getAlias();
        assertNotNull("No aliases found", aliases);
       
        Alias UTF8Alias = new Alias();
        UTF8Alias.setName("UTF8");
       
        int utf8AliasIndex = aliases.indexOf(UTF8Alias);
       
        Alias a = (Alias) aliases.get(utf8AliasIndex);
        assertNotNull("No aliases found", a);
       
        assertEquals("Incorrect alias in list", a.getName(), "utf8");
       
       
       
    }
View Full Code Here

TOP

Related Classes of com.volantis.charset.configuration.Alias

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.