[CONF] Confluence Changes in the last 24 hours
This is a daily summary of all recent changes in Confluence. - Updated Spaces: - Apache Camel (https://cwiki.apache.org/confluence/display/CAMEL) Pages - Camel 2.11.0 Release edited by rnewcomb (11:04 AM) https://cwiki.apache.org/confluence/display/CAMEL/Camel+2.11.0+Release JMX edited by rnewcomb (10:33 AM) https://cwiki.apache.org/confluence/display/CAMEL/JMX Articles edited by davsclaus (01:28 AM) https://cwiki.apache.org/confluence/display/CAMEL/Articles Apache Cloudstack (https://cwiki.apache.org/confluence/display/CLOUDSTACK) Pages - A-CS Post Install Architecture edited by kdamage (08:55 PM) https://cwiki.apache.org/confluence/display/CLOUDSTACK/2012/09/13/A-CS+Post+Install+Architecture Apache CloudStack Best Practices For Cloud Design created by kdamage (02:49 PM) https://cwiki.apache.org/confluence/display/CLOUDSTACK/Apache+CloudStack+Best+Practices+For+Cloud+Design Workspace (TMP) created by kdamage (02:39 PM) https://cwiki.apache.org/confluence/display/CLOUDSTACK/Workspace+%28TMP%29 ASF CS 4.0 QA edited by sudhap (01:49 PM) https://cwiki.apache.org/confluence/display/CLOUDSTACK/ASF+CS+4.0+QA Security Groups edited by sailajam (11:25 AM) https://cwiki.apache.org/confluence/display/CLOUDSTACK/Security+Groups Storage Migration edited by sowmyak (10:55 AM) https://cwiki.apache.org/confluence/display/CLOUDSTACK/Storage+Migration Projects edited by abhinavr (09:59 AM) https://cwiki.apache.org/confluence/display/CLOUDSTACK/Projects Convert Installation Guide to Docbook XML edited by gavin@gmail.com (09:25 AM) https://cwiki.apache.org/confluence/display/CLOUDSTACK/Convert+Installation+Guide+to+Docbook+XML Sep 13th 2012 created by sailajam (01:34 AM) https://cwiki.apache.org/confluence/display/CLOUDSTACK/Sep+13th+2012 ASF CS 4.0 QA Scrum Meeting Minutes created by sailajam (01:28 AM) https://cwiki.apache.org/confluence/display/CLOUDSTACK/ASF+CS+4.0+QA+Scrum+Meeting+Minutes Comments https://cwiki.apache.org/confluence/display/CLOUDSTACK/ASF+CS+4.0+QA (1) Apache Crunch (https://cwiki.apache.org/confluence/display/CRUNCH) Pages - Release Guide edited by mafr (02:33 PM) https://cwiki.apache.org/confluence/display/CRUNCH/Release+Guide Index edited by mafr (11:56 AM) https://cwiki.apache.org/confluence/display/CRUNCH/Index Apache Flex (https://cwiki.apache.org/confluence/display/FLEX) Pages - Mustella Overview edited by peterent (01:39 PM) https://cwiki.apache.org/confluence/display/FLEX/Mustella+Overview Falcon Overview edited by gosm...@adobe.com (01:21 PM) https://cwiki.apache.org/confluence/display/FLEX/Falcon+Overview Apache Hive (https://cwiki.apache.org/confluence/display/Hive) Pages - External Tables created by namit.jain (12:35 PM) https://cwiki.apache.org/confluence/display/Hive/External+Tables Comments https://cwiki.apache.org/confluence/display/Hive/Column+Statistics+in+Hive (1) Apache Kafka (https://cwiki.apache.org/confluence/display/KAFKA) Pages - Kafka replication development edited by jjko...@gmail.com (06:45 PM) https://cwiki.apache.org/confluence/display/KAFKA/Kafka+replication+development Apache Maven (https://cwiki.apache.org/confluence/display/MAVEN) Pages - git-workspace-plugin edited by krosenvold (03:52 AM) https://cwiki.apache.org/confluence/display/MAVEN/git-workspace-plugin Apache OpenOffice Community (https://cwiki.apache.org/confluence/display/OOOUSERS) Pages - User Guides Revisted edited by keith.mcke...@comcast.net (04:16 PM) https://cwiki.apache.org/confluence/display/OOOUSERS/User+Guides+Revisted OpenJPA (https://cwiki.apache.org/confluence/display/openjpa) Pages - Events and News edited by kwsut...@gmail.com (04:42 AM) https://cwiki.apache.org/confluence/display/openjpa/Events+and+News Apache Shindig (https://cwiki.apache.org/confluence/display/SHINDIG) Pages - Apache Shindig Bylaws Proposal created by hsaputra (01:51 PM) https://cwiki.apache.org/confluence/display/SHINDIG/Apache+Shindig+Bylaws+Proposal Apache Sqoop (https://cwiki.apache.org/confluence/display/SQOOP) Pages - Setting up Development Environment edit
svn commit: r1385022 - in /struts/struts2/trunk/xwork-core/src/test/java/com/opensymphony/xwork2: SimpleFooAction.java conversion/impl/NumberConverterTest.java
Author: lukaszlenart Date: Sat Sep 15 06:50:08 2012 New Revision: 1385022 URL: http://svn.apache.org/viewvc?rev=1385022&view=rev Log: WW-3876 adds additional test cases for NumberConverter Added: struts/struts2/trunk/xwork-core/src/test/java/com/opensymphony/xwork2/conversion/impl/NumberConverterTest.java Modified: struts/struts2/trunk/xwork-core/src/test/java/com/opensymphony/xwork2/SimpleFooAction.java Modified: struts/struts2/trunk/xwork-core/src/test/java/com/opensymphony/xwork2/SimpleFooAction.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/test/java/com/opensymphony/xwork2/SimpleFooAction.java?rev=1385022&r1=1385021&r2=1385022&view=diff == --- struts/struts2/trunk/xwork-core/src/test/java/com/opensymphony/xwork2/SimpleFooAction.java (original) +++ struts/struts2/trunk/xwork-core/src/test/java/com/opensymphony/xwork2/SimpleFooAction.java Sat Sep 15 06:50:08 2012 @@ -24,7 +24,18 @@ package com.opensymphony.xwork2; */ public class SimpleFooAction implements Action { +private Integer id; + public String execute() throws Exception { return SUCCESS; } + +public Integer getId() { +return id; +} + +public void setId(Integer id) { +this.id = id; +} + } Added: struts/struts2/trunk/xwork-core/src/test/java/com/opensymphony/xwork2/conversion/impl/NumberConverterTest.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/test/java/com/opensymphony/xwork2/conversion/impl/NumberConverterTest.java?rev=1385022&view=auto == --- struts/struts2/trunk/xwork-core/src/test/java/com/opensymphony/xwork2/conversion/impl/NumberConverterTest.java (added) +++ struts/struts2/trunk/xwork-core/src/test/java/com/opensymphony/xwork2/conversion/impl/NumberConverterTest.java Sat Sep 15 06:50:08 2012 @@ -0,0 +1,42 @@ +package com.opensymphony.xwork2.conversion.impl; + +import com.opensymphony.xwork2.ActionContext; +import com.opensymphony.xwork2.SimpleFooAction; +import com.opensymphony.xwork2.XWorkTestCase; + +import java.util.HashMap; +import java.util.Locale; +import java.util.Map; + +public class NumberConverterTest extends XWorkTestCase { + +public void testStringToNumberConversionPL() throws Exception { +// given +NumberConverter converter = new NumberConverter(); +Map context = new HashMap(); +context.put(ActionContext.LOCALE, new Locale("pl", "PL")); + +SimpleFooAction foo = new SimpleFooAction(); + +// when +Object value = converter.convertValue(context, foo, null, "id", "1234", Integer.class); + +// then +assertEquals(1234, value); +} + +public void testStringToNumberConversionUS() throws Exception { +// given +NumberConverter converter = new NumberConverter(); +Map context = new HashMap(); +context.put(ActionContext.LOCALE, new Locale("en", "US")); + +SimpleFooAction foo = new SimpleFooAction(); + +// when +Object value = converter.convertValue(context, foo, null, "id", ",1234", Integer.class); + +// then +assertEquals(1234, value); +} +}