You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2013/02/08 16:03:11 UTC
svn commit: r1444041 -
/myfaces/tobago/trunk/tobago-core/src/test/java/org/apache/myfaces/tobago/component/ComponentTypesUnitTest.java
Author: lofwyr
Date: Fri Feb 8 15:03:11 2013
New Revision: 1444041
URL: http://svn.apache.org/r1444041
Log:
check component types
Modified:
myfaces/tobago/trunk/tobago-core/src/test/java/org/apache/myfaces/tobago/component/ComponentTypesUnitTest.java
Modified: myfaces/tobago/trunk/tobago-core/src/test/java/org/apache/myfaces/tobago/component/ComponentTypesUnitTest.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/test/java/org/apache/myfaces/tobago/component/ComponentTypesUnitTest.java?rev=1444041&r1=1444040&r2=1444041&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/test/java/org/apache/myfaces/tobago/component/ComponentTypesUnitTest.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/test/java/org/apache/myfaces/tobago/component/ComponentTypesUnitTest.java Fri Feb 8 15:03:11 2013
@@ -30,10 +30,10 @@ public class ComponentTypesUnitTest {
@Test
public void testNames() throws IllegalAccessException {
- for (Field field : RendererTypes.class.getFields()) {
+ for (Field field : ComponentTypes.class.getFields()) {
String value = (String) field.get(null);
- Assert.assertTrue("value='" + value + "'", value.matches("[A-Z][a-zA-Z]*"));
- Assert.assertEquals(StringUtils.constantToCamelCase(field.getName()), value);
+ Assert.assertTrue("value='" + value + "'", value.matches("org\\.apache\\.myfaces\\.tobago\\.[A-Z][a-zA-Z]*"));
+ Assert.assertEquals("org.apache.myfaces.tobago." + StringUtils.constantToCamelCase(field.getName()), value);
}
}
}