AW: Httpunit and different locales

"EdA-qa Mort-ora-y" <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
By example (from our code):
 
        WebConversation wc = new AutoWebConversation();
        String lang = (String)ctx.get( "Web.Language" );    //where ctx is some properties map
        String region = (String)ctx.get( "Web.Country" );
 
        if( lang != null ) {
            wc.setHeaderField( "Accept-Language",
                region == null
                    ? lang
                    : lang + "-" + region.toLowerCase( ) );
        }


-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]]Im Auftrag von Simon Kruse
Gesendet: Donnerstag, 30. März 2006 17:42
An: [email protected]
Betreff: [Httpunit-develop] Httpunit and different locales


Hi,
 
I would like to have a test for a website with different locales. Can I set the locale for a WebConversation? Or is there another possibility to test with different locales?
 
Kind regards, Simon
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.