Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix jsfunit test

  • Loading branch information...
commit a75f0bdf15c750813160a01524b251f305aea1c5 1 parent 7c2016d
@mojavelinux mojavelinux authored
View
9 jsf/src/test/java/com/acme/jsf/confcal/ConferenceCalendarUiTestCase.java
@@ -23,6 +23,7 @@
import java.util.Date;
import java.util.List;
+import javax.enterprise.inject.Instance;
import javax.faces.application.ProjectStage;
import org.jboss.arquillian.container.test.api.Deployment;
@@ -59,7 +60,7 @@ public static WebArchive createDeployment() {
@Test
@InitialPage("/submit.jsf")
- public void submittedConferenceShouldBeSaved(JSFClientSession client, JSFServerSession server) throws Exception {
+ public void submittedConferenceShouldBeSaved(JSFClientSession client, JSFServerSession server, Instance<List<Conference>> conferencesInstance) throws Exception {
assertEquals("/submit.xhtml", server.getCurrentViewID());
assertEquals(null, server.getManagedBeanValue("#{conference.title}"));
@@ -82,8 +83,10 @@ public void submittedConferenceShouldBeSaved(JSFClientSession client, JSFServerS
assertEquals("/submission.xhtml", server.getCurrentViewID());
- @SuppressWarnings("unchecked")
- List<Conference> conferences = (List<Conference>) server.getManagedBeanValue("#{conferences}");
+ // FIXME ELContext is not being properly wrapped when resolving via JSFServerSession
+// @SuppressWarnings("unchecked")
+// List<Conference> conferences = (List<Conference>) server.getManagedBeanValue("#{conferences}");
+ List<Conference> conferences = conferencesInstance.get();
assertNotNull(conferences);
assertEquals(1, conferences.size());
Conference conference = conferences.get(0);
Please sign in to comment.
Something went wrong with that request. Please try again.