Users Pricing

forum

home / developersection / forums / change default locale for junit test

change default locale for junit test

Anonymous User 3193 29 Dec 2014
How do you change the default locale for a JUnit Test. Current locale is en. I want to test for es_ES. I tried:

System.setProperty("locale", "es_ES");
But this doesn't seem to work.

I am a content writter !


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md