Author: nbelaevski
Date: 2011-01-12 14:40:52 -0500 (Wed, 12 Jan 2011)
New Revision: 20972
Modified:
trunk/ui/validator/ui/src/test/java/org/richfaces/validator/FacesConverterServiceTest.java
trunk/ui/validator/ui/src/test/java/org/richfaces/validator/FacesValidatorServiceTest.java
Log:
https://issues.jboss.org/browse/RF-9390
Modified:
trunk/ui/validator/ui/src/test/java/org/richfaces/validator/FacesConverterServiceTest.java
===================================================================
---
trunk/ui/validator/ui/src/test/java/org/richfaces/validator/FacesConverterServiceTest.java 2011-01-12
19:16:35 UTC (rev 20971)
+++
trunk/ui/validator/ui/src/test/java/org/richfaces/validator/FacesConverterServiceTest.java 2011-01-12
19:40:52 UTC (rev 20972)
@@ -1,7 +1,8 @@
package org.richfaces.validator;
-import static org.easymock.EasyMock.*;
-import static org.junit.Assert.*;
+import static org.easymock.EasyMock.expect;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
import java.util.HashMap;
import java.util.Locale;
@@ -52,7 +53,7 @@
serviceImpl = new ConverterServiceImpl();
expect(environment.getFacesContext().getViewRoot()).andStubReturn(viewRoot);
expect(viewRoot.getLocale()).andStubReturn(Locale.ENGLISH);
-
expect(environment.getApplication().getMessageBundle()).andStubReturn("com.sun.faces.resources.Messages");
+
expect(environment.getApplication().getMessageBundle()).andStubReturn("javax.faces.Messages");
HashMap<String, Object> attributes = new HashMap<String, Object>();
attributes.put("label", "foo");
expect(input.getAttributes()).andStubReturn(attributes);
Modified:
trunk/ui/validator/ui/src/test/java/org/richfaces/validator/FacesValidatorServiceTest.java
===================================================================
---
trunk/ui/validator/ui/src/test/java/org/richfaces/validator/FacesValidatorServiceTest.java 2011-01-12
19:16:35 UTC (rev 20971)
+++
trunk/ui/validator/ui/src/test/java/org/richfaces/validator/FacesValidatorServiceTest.java 2011-01-12
19:40:52 UTC (rev 20972)
@@ -1,7 +1,8 @@
package org.richfaces.validator;
-import static org.easymock.EasyMock.*;
-import static org.junit.Assert.*;
+import static org.easymock.EasyMock.expect;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
import java.util.HashMap;
import java.util.Locale;
@@ -46,7 +47,7 @@
serviceImpl = new FacesValidatorServiceImpl();
expect(environment.getFacesContext().getViewRoot()).andStubReturn(viewRoot);
expect(viewRoot.getLocale()).andStubReturn(Locale.ENGLISH);
-
expect(environment.getApplication().getMessageBundle()).andStubReturn("com.sun.faces.resources.Messages");
+
expect(environment.getApplication().getMessageBundle()).andStubReturn("javax.faces.Messages");
HashMap<String, Object> attributes = new HashMap<String, Object>();
attributes.put("label", "foo");
expect(input.getAttributes()).andStubReturn(attributes);