Questions tagged [jsfunit]

JSFUnit is a test framework for Java ServerFaces

JSFUnit is a unit test framework for Java Server Faces which uses a simplified API for unit testing and integration testing of JSF applications.

31 questions
1
vote
0 answers

How to make a rich:modalPanel be displayed in jsf unit?

I'm running a jsf unit test and it includes to test if a modal is displayed and i want to test some action inside the modal but the isDisplayed is always false. Is there something that I am missing here. Here is piece of my code: HtmlSelect…
Ellie Fabrero
  • 791
  • 2
  • 16
  • 41
0
votes
1 answer

Trouble with running JSFUnit 2.0Beta1 & Jetty

I am trying to integrate JSFUnit 2.0.0 "Getting Started" Example on Jetty in maven environment. Source available in Below URL: http://community.jboss.org/wiki/JSFUnit200GettingStartedExample I am able to execute this sample on JBossAs6, but facing…
Arun
  • 1
  • 1
0
votes
1 answer

Can i use WebSphere 6.1 for JSFunit?

I am doing work on jsfunit, and i am using WebSphere6.1 application server so can anyone give me answer that is it compatible for JSFunit or i need to do some changes in my server configuration? if possible send me the example? Thanks Vinod
vinod
  • 1,178
  • 4
  • 16
  • 42
0
votes
1 answer

How to get a Spring IoC Bean using JSFUnit on JSF 1.2

So my application runs on JSF 1.2 and uses the Spring Beans IOC to inject classes into Backing Beans based on the Spring Context XML configuration. I am using JSFUnit for testing, and I can navigate through pages and assert on my Backing Bean…
abdelrahman-sinno
  • 1,157
  • 1
  • 12
  • 33
0
votes
1 answer

Does Arquilian Warp support Unit Testing JSF 1.2

This is my first shot at unit testing a JSF 1.2 + RichFaces 3.3.3 application; going through available frameworks, I found out about JSFUnit which should work with this JSF version, but later on discovered that this project is now discontinued and…
abdelrahman-sinno
  • 1,157
  • 1
  • 12
  • 33
0
votes
1 answer

JSFUnit accessing FacesContext before JSFSession is created

I want to access the JSFUnit FacesContext before I create the JSFSession object. The reason for this is I would like to set a managed bean value before any request/response processing is done. I use this value in a filter.
Panayiotis Karabassis
  • 2,278
  • 3
  • 25
  • 40
0
votes
1 answer

How can i use embedded Jetty with JSFUnit?

I would like to test my JSF application using JSFUnit and embedded Jetty. How can i do this? Is there any documentation which demonstrates this? I started a jetty server programatically using junit4's @BeforeClass but it seems JSFUnit tries to…
JavaRocky
  • 19,203
  • 31
  • 89
  • 110
0
votes
1 answer

How can i select a value in dropdown list per JSFUnit?

I would like to change a value in dropdown list (h:selectOneMenu) with id "items". The following causes error client.setValue("items", "1"); java.lang.IllegalArgumentException: This method can not be used on components of type…
easyrider
  • 361
  • 2
  • 4
  • 14
0
votes
2 answers

jsfunit with junit 4

We would like to test our web application (jsf 1.2, richfaces 3.3.3) with jsfunit. We are using junit 4.8.1 library for our unit tests. But jsfunit (1.2.0.Final) requires non existing class junit.runner.TestSuiteLoader. If i downgrade to junit 3.8,…
easyrider
  • 361
  • 2
  • 4
  • 14
0
votes
1 answer

adding a Main JSF project's Classes to another JSF project's Properties/Libraries

I am new with JSFUnit testing (with Netbeans7.3, JSF2.1, JDK7) and I was wondering if there a way where I can add the classes from my Main project into my JSFUnit project, well I was told to separate my JSFUnit project from the main one. I have…
van
  • 139
  • 2
0
votes
1 answer

How to fix NoResolvedResultException

Cheers! I getting the following error when trying to run tests on my CI server: Caused by: org.jboss.shrinkwrap.resolver.api.NoResolvedResultException: Unable to get artifact from the repository, reason: Could not find artifact…
Felipe Reis
  • 479
  • 8
  • 24
0
votes
1 answer

JSFUnit inconsistently getting JSFServerSession

We are trying to run JSFUnit with Arquillian on a WebLogic 12c container and are running into a few problems. First, when we try to use the @InitialPage annotation to inject in the JSFServerSession and JSFClientSession, the JSFServerSession is…
mpaulse
  • 87
  • 1
  • 11
0
votes
1 answer

How to execute JSFUnit tests during Maven build

I would like to execute JSFUnit tests during the Maven build process of the application. How can I configure Maven to do so?
user1809407
0
votes
1 answer

Null pointer exception while running Jsfunit test

I am trying to run JSFUnit test to test my jsf pages as well as managed beans on JBoss. I am getting the Null pointer exception whole running the test. I am using jboss-jsfunit-core-1.3.0.Final.jar. Some time back i was using jboss-jsfunit- …
Srikanth Ganji
  • 1,127
  • 1
  • 13
  • 29
0
votes
1 answer

Testing domain model in a JSF 2.0 application running on Glassfish server

I have just implement some entities and some backing beans. However, I would like to know if there is someway to test the domain model, or entities, on the application server which in this case is Glassfish. For example when I have added a new…
kungcc
  • 1,832
  • 5
  • 25
  • 48