List of usage examples for java.util Locale JAPANESE
Locale JAPANESE
To view the source code for java.util Locale JAPANESE.
Click Source Link
From source file:jp.terasoluna.fw.web.struts.form.FieldChecksExTest09.java
/** * testValidateDateRange08()/*from w w w .j a va2 s .c o m*/ * <br><br> * * (??n) * <br> * _?FF * <br><br> * l?F(?) bean:"2005/2/28"<br> * (?) va:not null<br> * (?) field:not null<br> * var:datePattern=null<br> * var:datePatternStrict="yyyy/MM/dd"<br> * Msg("message","message")<br> * (?) errors:not null<br> * (vf)<br> * (?) validator:not null<br> * (?) request:not null<br> * Locale=JAPANESE<br> * * <br> * l?F(l) boolean:false<br> * (?) errors:ActionMessage("message")<br> * * <br> * ?bean??t\?AdatePatternw?A * datePatternStrictwttH?[}bgbeantH?[}bg * Sv???AG?[?bZ?[Wfalsep * mF?B * <br> * * @throws Exception ?\bh?O */ public void testValidateDateRange08() throws Exception { //eXgf?[^? // ++++ beanIuWFNg ++++ String bean = "2005/2/28"; // ++++ ??IuWFNg ValidatorAction va = new ValidatorAction(); va.setName("message"); // ++++ ?tB?[h? Field field = new Field(); Var var = new Var(); var.setName("datePattern"); var.setValue(null); field.addVar(var); var = new Var(); var.setName("datePatternStrict"); var.setValue("yyyy/MM/dd"); field.addVar(var); // ?bZ?[W? Msg msg = new Msg(); msg.setKey("message"); msg.setName("message"); msg.setResource(false); field.addMsg(msg); // G?[? ActionMessages errors = new ActionMessages(); // [HTTPNGXg MockHttpServletRequest request = new MockHttpServletRequest(); request.setLocale(Locale.JAPANESE); // ValidatorResourcesCX^X ValidatorResources validatorResources = new ValidatorResources(); // ValidatorCX^X Validator validator = new Validator(validatorResources); // eXg?s boolean result = FieldChecksEx.validateDateRange(bean, va, field, errors, validator, request); // eXgmF // falsep?B assertFalse(result); // G?[?1??B assertEquals(1, errors.size()); // ?bZ?[WIuWFNgmF Iterator it = errors.get(); ActionMessage message = (ActionMessage) it.next(); assertEquals("message", message.getKey()); }
From source file:jp.terasoluna.fw.web.struts.form.FieldChecksExTest09.java
/** * testValidateDateRange09()// ww w .j a v a2 s. com * <br><br> * * (??n) * <br> * _?FF * <br><br> * l?F(?) bean:"abc"<br> * (?) va:not null<br> * (?) field:not null<br> * var:datePattern="yyyy/MM/dd"<br> * var:datePatternStrict=null<br> * Msg("message","message")<br> * (?) errors:not null<br> * (vf)<br> * (?) validator:not null<br> * (?) request:not null<br> * Locale=JAPANESE<br> * * <br> * l?F(l) boolean:false<br> * (?) errors:ActionMessage("message")<br> * * <br> * datePattern??ttH?[}bgw?A * ?beanDate???AG?[?bZ?[Wfalse * pmF?B * <br> * * @throws Exception ?\bh?O */ public void testValidateDateRange09() throws Exception { //eXgf?[^? // ++++ beanIuWFNg ++++ String bean = "abc"; // ++++ ??IuWFNg ValidatorAction va = new ValidatorAction(); va.setName("message"); // ++++ ?tB?[h? Field field = new Field(); Var var = new Var(); var.setName("datePattern"); var.setValue("yyyy/MM/dd"); field.addVar(var); var = new Var(); var.setName("datePatternStrict"); var.setValue(null); field.addVar(var); // ?bZ?[W? Msg msg = new Msg(); msg.setKey("message"); msg.setName("message"); msg.setResource(false); field.addMsg(msg); // G?[? ActionMessages errors = new ActionMessages(); // [HTTPNGXg MockHttpServletRequest request = new MockHttpServletRequest(); request.setLocale(Locale.JAPANESE); // ValidatorResourcesCX^X ValidatorResources validatorResources = new ValidatorResources(); // ValidatorCX^X Validator validator = new Validator(validatorResources); // eXg?s boolean result = FieldChecksEx.validateDateRange(bean, va, field, errors, validator, request); // eXgmF // falsep?B assertFalse(result); // G?[?1??B assertEquals(1, errors.size()); // ?bZ?[WIuWFNgmF Iterator it = errors.get(); ActionMessage message = (ActionMessage) it.next(); assertEquals("message", message.getKey()); }
From source file:jp.terasoluna.fw.web.struts.form.FieldChecksExTest09.java
/** * testValidateDateRange10()/*from w ww. j av a 2 s. c o m*/ * <br><br> * * (?n) * <br> * _?FF * <br><br> * l?F(?) bean:"2005/10/24"<br> * (?) va:not null<br> * (?) field:not null<br> * var:datePattern="abc"<br> * var:datePatternStrict=null<br> * Msg("message","message")<br> * (?) errors:not null<br> * (vf)<br> * (?) validator:not null<br> * (?) request:not null<br> * Locale=JAPANESE<br> * * <br> * l?F(l) boolean:false<br> * (?) ?O:?Ox?F<br> * G?[<br> * ?bZ?[W?F<br> * Illegal pattern character 'b'<br> * O?F<br> * IllegalArgumentException<br> * (?) errors:ActionMessage("message")<br> * * <br> * ?bean??t\?AdatePatterns? * ttH?[}bgw???AG?[?bZ?[Wfalse * pmF?B * <br> * * @throws Exception ?\bh?O */ public void testValidateDateRange10() throws Exception { //eXgf?[^? // ++++ beanIuWFNg ++++ String bean = "2005/10/24"; // ++++ ??IuWFNg ValidatorAction va = new ValidatorAction(); va.setName("message"); // ++++ ?tB?[h? Field field = new Field(); Var var = new Var(); var.setName("datePattern"); var.setValue("abc"); field.addVar(var); var = new Var(); var.setName("datePatternStrict"); var.setValue(null); field.addVar(var); // ?bZ?[W? Msg msg = new Msg(); msg.setKey("message"); msg.setName("message"); msg.setResource(false); field.addMsg(msg); // G?[? ActionMessages errors = new ActionMessages(); // [HTTPNGXg MockHttpServletRequest request = new MockHttpServletRequest(); request.setLocale(Locale.JAPANESE); // ValidatorResourcesCX^X ValidatorResources validatorResources = new ValidatorResources(); // ValidatorCX^X Validator validator = new Validator(validatorResources); // eXg?s boolean result = FieldChecksEx.validateDateRange(bean, va, field, errors, validator, request); // eXgmF // falsep?B assertFalse(result); // G?[?1??B assertEquals(1, errors.size()); // ?bZ?[WIuWFNgmF Iterator it = errors.get(); ActionMessage message = (ActionMessage) it.next(); assertEquals("message", message.getKey()); // G?[?O`FbN assertTrue(LogUTUtil.checkError("Illegal pattern character 'b'", new IllegalArgumentException())); }
From source file:jp.terasoluna.fw.web.struts.form.FieldChecksExTest09.java
/** * testValidateDateRange11()//from w w w .j a v a2 s . c o m * <br><br> * * (??n) * <br> * _?FF * <br><br> * l?F(?) bean:"2005/02/29"<br> * (?) va:not null<br> * (?) field:not null<br> * var:datePattern="yyyy/MM/dd"<br> * var:datePatternStrict=null<br> * Msg("message","message")<br> * (?) errors:not null<br> * (vf)<br> * (?) validator:not null<br> * (?) request:not null<br> * Locale=JAPANESE<br> * * <br> * l?F(l) boolean:false<br> * (?) errors:ActionMessage("message")<br> * * <br> * ?bean?t\?AdatePatterns? * ttH?[}bgw???AG?[?bZ?[W * falsepmF?B * <br> * * @throws Exception ?\bh?O */ public void testValidateDateRange11() throws Exception { //eXgf?[^? // ++++ beanIuWFNg ++++ String bean = "2005/02/29"; // ++++ ??IuWFNg ValidatorAction va = new ValidatorAction(); va.setName("message"); // ++++ ?tB?[h? Field field = new Field(); Var var = new Var(); var.setName("datePattern"); var.setValue("yyyy/MM/dd"); field.addVar(var); var = new Var(); var.setName("datePatternStrict"); var.setValue(null); field.addVar(var); // ?bZ?[W? Msg msg = new Msg(); msg.setKey("message"); msg.setName("message"); msg.setResource(false); field.addMsg(msg); // G?[? ActionMessages errors = new ActionMessages(); // [HTTPNGXg MockHttpServletRequest request = new MockHttpServletRequest(); request.setLocale(Locale.JAPANESE); // ValidatorResourcesCX^X ValidatorResources validatorResources = new ValidatorResources(); // ValidatorCX^X Validator validator = new Validator(validatorResources); // eXg?s boolean result = FieldChecksEx.validateDateRange(bean, va, field, errors, validator, request); // eXgmF // falsep?B assertFalse(result); // G?[?1??B assertEquals(1, errors.size()); // ?bZ?[WIuWFNgmF Iterator it = errors.get(); ActionMessage message = (ActionMessage) it.next(); assertEquals("message", message.getKey()); }
From source file:jp.terasoluna.fw.web.struts.form.FieldChecksExTest09.java
/** * testValidateDateRange12()/*from w ww . j a va 2s . c o m*/ * <br><br> * * (??n) * <br> * _?FF * <br><br> * l?F(?) bean:"2005/2/28"<br> * (?) va:not null<br> * (?) field:not null<br> * var:datePattern="yyyy/MM/dd"<br> * var:datePatternStrict="yyyy/MM/dd"<br> * var:startDate=null<br> * var:endDate=null<br> * Msg("message","message")<br> * (?) errors:not null<br> * (vf)<br> * (?) validator:not null<br> * (?) request:not null<br> * Locale=JAPANESE<br> * * <br> * l?F(l) boolean:true<br> * (?) errors:not null<br> * (vf)<br> * * <br> * datePatterndatePatternStrictw???A * datePatternwtH?[}bgD??A<br> * fieldstartDateendDatenull???Atrue?AmF?B * <br> * * @throws Exception ?\bh?O */ public void testValidateDateRange12() throws Exception { //eXgf?[^? // ++++ beanIuWFNg ++++ String bean = "2005/2/28"; // ++++ ??IuWFNg ValidatorAction va = new ValidatorAction(); va.setName("message"); // ++++ ?tB?[h? Field field = new Field(); Var var = new Var(); var.setName("datePattern"); var.setValue("yyyy/MM/dd"); field.addVar(var); var = new Var(); var.setName("datePatternStrict"); var.setValue("yyyy/MM/dd"); field.addVar(var); var = new Var(); var.setName("startDate"); var.setValue(null); field.addVar(var); var = new Var(); var.setName("endDate"); var.setValue(null); field.addVar(var); // ?bZ?[W? Msg msg = new Msg(); msg.setKey("message"); msg.setName("message"); msg.setResource(false); field.addMsg(msg); // G?[? ActionMessages errors = new ActionMessages(); // [HTTPNGXg MockHttpServletRequest request = new MockHttpServletRequest(); request.setLocale(Locale.JAPANESE); // ValidatorResourcesCX^X ValidatorResources validatorResources = new ValidatorResources(); // ValidatorCX^X Validator validator = new Validator(validatorResources); // eXg?s boolean result = FieldChecksEx.validateDateRange(bean, va, field, errors, validator, request); // eXgmF // truep?B assertTrue(result); // G?[??B assertTrue(errors.isEmpty()); }
From source file:jp.terasoluna.fw.web.struts.form.FieldChecksExTest09.java
/** * testValidateDateRange13()//from w w w . ja va2s . c om * <br><br> * * (??n) * <br> * _?FF * <br><br> * l?F(?) bean:"2005/2/28"<br> * (?) va:not null<br> * (?) field:not null<br> * var:datePattern="yyyy/MM/dd"<br> * var:datePatternStrict="yyyy/MM/dd"<br> * var:startDate=""<br> * var:endDate=""<br> * Msg("message","message")<br> * (?) errors:not null<br> * (vf)<br> * (?) validator:not null<br> * (?) request:not null<br> * Locale=JAPANESE<br> * * <br> * l?F(l) boolean:true<br> * (?) errors:not null<br> * (vf)<br> * * <br> * datePatterndatePatternStrictw???A * datePatternwtH?[}bgD??A<br> * fieldstartDateendDate???Atrue?A * mF?B * <br> * * @throws Exception ?\bh?O */ public void testValidateDateRange13() throws Exception { //eXgf?[^? // ++++ beanIuWFNg ++++ String bean = "2005/2/28"; // ++++ ??IuWFNg ValidatorAction va = new ValidatorAction(); va.setName("message"); // ++++ ?tB?[h? Field field = new Field(); Var var = new Var(); var.setName("datePattern"); var.setValue("yyyy/MM/dd"); field.addVar(var); var = new Var(); var.setName("datePatternStrict"); var.setValue("yyyy/MM/dd"); field.addVar(var); var = new Var(); var.setName("startDate"); var.setValue(""); field.addVar(var); var = new Var(); var.setName("endDate"); var.setValue(""); field.addVar(var); // ?bZ?[W? Msg msg = new Msg(); msg.setKey("message"); msg.setName("message"); msg.setResource(false); field.addMsg(msg); // G?[? ActionMessages errors = new ActionMessages(); // [HTTPNGXg MockHttpServletRequest request = new MockHttpServletRequest(); request.setLocale(Locale.JAPANESE); // ValidatorResourcesCX^X ValidatorResources validatorResources = new ValidatorResources(); // ValidatorCX^X Validator validator = new Validator(validatorResources); // eXg?s boolean result = FieldChecksEx.validateDateRange(bean, va, field, errors, validator, request); // eXgmF // truep?B assertTrue(result); // G?[??B assertTrue(errors.isEmpty()); }
From source file:jp.terasoluna.fw.web.struts.form.FieldChecksExTest09.java
/** * testValidateDateRange14()//from w ww .j a v a 2 s .c o m * <br><br> * * (??n) * <br> * _?FF * <br><br> * l?F(?) bean:"2005/01/01"<br> * (?) va:not null<br> * (?) field:not null<br> * var:datePattern=null<br> * var:datePatternStrict=null<br> * var:startDate="abc"<br> * Msg("message","message")<br> * (?) errors:not null<br> * (vf)<br> * (?) validator:not null<br> * (?) request:not null<br> * Locale=JAPANESE<br> * * <br> * l?F(l) boolean:false<br> * (?) errors:ActionMessage("message")<br> * * <br> * datePattern?AdatePatternStrictw?A * ?beanDate?AfieldstartDatet???A * G?[?bZ?[W?AfalsepmF?B * <br> * * @throws Exception ?\bh?O */ public void testValidateDateRange14() throws Exception { //eXgf?[^? // ++++ beanIuWFNg ++++ String bean = "2005/01/01"; // ++++ ??IuWFNg ValidatorAction va = new ValidatorAction(); va.setName("message"); // ++++ ?tB?[h? Field field = new Field(); Var var = new Var(); var.setName("datePattern"); var.setValue(null); field.addVar(var); var = new Var(); var.setName("datePatternStrict"); var.setValue(null); field.addVar(var); var = new Var(); var.setName("startDate"); var.setValue("abc"); field.addVar(var); // ?bZ?[W? Msg msg = new Msg(); msg.setKey("message"); msg.setName("message"); msg.setResource(false); field.addMsg(msg); // G?[? ActionMessages errors = new ActionMessages(); // [HTTPNGXg MockHttpServletRequest request = new MockHttpServletRequest(); request.setLocale(Locale.JAPANESE); // ValidatorResourcesCX^X ValidatorResources validatorResources = new ValidatorResources(); // ValidatorCX^X Validator validator = new Validator(validatorResources); // eXg?s boolean result = FieldChecksEx.validateDateRange(bean, va, field, errors, validator, request); // eXgmF // falsep?B assertFalse(result); // G?[?1??B assertEquals(1, errors.size()); // ?bZ?[WIuWFNgmF Iterator it = errors.get(); ActionMessage message = (ActionMessage) it.next(); assertEquals("message", message.getKey()); }
From source file:jp.terasoluna.fw.web.struts.form.FieldChecksExTest09.java
/** * testValidateDateRange15()// www.j av a2s. c o m * <br><br> * * (?n) * <br> * _?FF * <br><br> * l?F(?) bean:"2005/01/01"<br> * (?) va:not null<br> * (?) field:not null<br> * var:datePattern=null<br> * var:datePatternStrict="yyyy/MM/dd"<br> * var:startDate="2005/02/29"<br> * Msg("message","message")<br> * (?) errors:not null<br> * (vf)<br> * (?) validator:not null<br> * (?) request:not null<br> * Locale=JAPANESE<br> * * <br> * l?F(l) boolean:false<br> * (?) errors:ActionMessage("message")<br> * * <br> * datePatternStrict??ttH?[}bgw?A * ?beanDate?AfieldstartDatet???A * G?[?bZ?[W?AfalsepmF?B * <br> * * @throws Exception ?\bh?O */ public void testValidateDateRange15() throws Exception { //eXgf?[^? // ++++ beanIuWFNg ++++ String bean = "2005/01/01"; // ++++ ??IuWFNg ValidatorAction va = new ValidatorAction(); va.setName("message"); // ++++ ?tB?[h? Field field = new Field(); Var var = new Var(); var.setName("datePattern"); var.setValue(null); field.addVar(var); var = new Var(); var.setName("datePatternStrict"); var.setValue("yyyy/MM/dd"); field.addVar(var); var = new Var(); var.setName("startDate"); var.setValue("2005/02/29"); field.addVar(var); // ?bZ?[W? Msg msg = new Msg(); msg.setKey("message"); msg.setName("message"); msg.setResource(false); field.addMsg(msg); // G?[? ActionMessages errors = new ActionMessages(); // [HTTPNGXg MockHttpServletRequest request = new MockHttpServletRequest(); request.setLocale(Locale.JAPANESE); // ValidatorResourcesCX^X ValidatorResources validatorResources = new ValidatorResources(); // ValidatorCX^X Validator validator = new Validator(validatorResources); // eXg?s boolean result = FieldChecksEx.validateDateRange(bean, va, field, errors, validator, request); // eXgmF // falsep?B assertFalse(result); // G?[?1??B assertEquals(1, errors.size()); // ?bZ?[WIuWFNgmF Iterator it = errors.get(); ActionMessage message = (ActionMessage) it.next(); assertEquals("message", message.getKey()); }
From source file:jp.terasoluna.fw.web.struts.form.FieldChecksExTest09.java
/** * testValidateDateRange16()/*from www .j a va 2 s. co m*/ * <br><br> * * (?n) * <br> * _?FF * <br><br> * l?F(?) bean:"2005/01/01"<br> * (?) va:not null<br> * (?) field:not null<br> * var:datePattern=null<br> * var:datePatternStrict="yyyy/MM/dd"<br> * var:startDate="2005/2/28"<br> * Msg("message","message")<br> * (?) errors:not null<br> * (vf)<br> * (?) validator:not null<br> * (?) request:not null<br> * Locale=JAPANESE<br> * * <br> * l?F(l) boolean:false<br> * (?) errors:ActionMessage("message")<br> * * <br> * datePatternStrict??ttH?[}bgw?A * ?beanDate?AfieldstartDatet???A * G?[?bZ?[W?AfalsepmF?B * <br> * * @throws Exception ?\bh?O */ public void testValidateDateRange16() throws Exception { //eXgf?[^? // ++++ beanIuWFNg ++++ String bean = "2005/01/01"; // ++++ ??IuWFNg ValidatorAction va = new ValidatorAction(); va.setName("message"); // ++++ ?tB?[h? Field field = new Field(); Var var = new Var(); var.setName("datePattern"); var.setValue(null); field.addVar(var); var = new Var(); var.setName("datePatternStrict"); var.setValue("yyyy/MM/dd"); field.addVar(var); var = new Var(); var.setName("startDate"); var.setValue("2005/2/28"); field.addVar(var); // ?bZ?[W? Msg msg = new Msg(); msg.setKey("message"); msg.setName("message"); msg.setResource(false); field.addMsg(msg); // G?[? ActionMessages errors = new ActionMessages(); // [HTTPNGXg MockHttpServletRequest request = new MockHttpServletRequest(); request.setLocale(Locale.JAPANESE); // ValidatorResourcesCX^X ValidatorResources validatorResources = new ValidatorResources(); // ValidatorCX^X Validator validator = new Validator(validatorResources); // eXg?s boolean result = FieldChecksEx.validateDateRange(bean, va, field, errors, validator, request); // eXgmF // falsep?B assertFalse(result); // G?[?1??B assertEquals(1, errors.size()); // ?bZ?[WIuWFNgmF Iterator it = errors.get(); ActionMessage message = (ActionMessage) it.next(); assertEquals("message", message.getKey()); }
From source file:jp.terasoluna.fw.web.struts.form.FieldChecksExTest09.java
/** * testValidateDateRange17()/*from w w w . j a v a 2 s . c o m*/ * <br><br> * * (?n) * <br> * _?FF * <br><br> * l?F(?) bean:"2005/01/01"<br> * (?) va:not null<br> * (?) field:not null<br> * var:datePattern=null<br> * var:datePatternStrict="yyyy/MM/dd"<br> * var:startDate="abc"<br> * Msg("message","message")<br> * (?) errors:not null<br> * (vf)<br> * (?) validator:not null<br> * (?) request:not null<br> * Locale=JAPANESE<br> * * <br> * l?F(l) boolean:false<br> * (?) errors:ActionMessage("message")<br> * * <br> * datePatternStrict??ttH?[}bgw?A * ?beanDate?AfieldstartDatet???A * G?[?bZ?[W?AfalsepmF?B * <br> * * @throws Exception ?\bh?O */ public void testValidateDateRange17() throws Exception { //eXgf?[^? // ++++ beanIuWFNg ++++ String bean = "2005/01/01"; // ++++ ??IuWFNg ValidatorAction va = new ValidatorAction(); va.setName("message"); // ++++ ?tB?[h? Field field = new Field(); Var var = new Var(); var.setName("datePattern"); var.setValue(null); field.addVar(var); var = new Var(); var.setName("datePatternStrict"); var.setValue("yyyy/MM/dd"); field.addVar(var); var = new Var(); var.setName("startDate"); var.setValue("abc"); field.addVar(var); // ?bZ?[W? Msg msg = new Msg(); msg.setKey("message"); msg.setName("message"); msg.setResource(false); field.addMsg(msg); // G?[? ActionMessages errors = new ActionMessages(); // [HTTPNGXg MockHttpServletRequest request = new MockHttpServletRequest(); request.setLocale(Locale.JAPANESE); // ValidatorResourcesCX^X ValidatorResources validatorResources = new ValidatorResources(); // ValidatorCX^X Validator validator = new Validator(validatorResources); // eXg?s boolean result = FieldChecksEx.validateDateRange(bean, va, field, errors, validator, request); // eXgmF // falsep?B assertFalse(result); // G?[?1??B assertEquals(1, errors.size()); // ?bZ?[WIuWFNgmF Iterator it = errors.get(); ActionMessage message = (ActionMessage) it.next(); assertEquals("message", message.getKey()); }