0

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 replaced with Arquilian Warp (which works with other related components).

However, due lack of documentation, I couldn't figure out if Arquilian Warp supports JSF 1.2; so can anyone answer, can I go ahead with it, or is JSFUnit my only option for the moment ?

Tiny
  • 27,221
  • 105
  • 339
  • 599
abdelrahman-sinno
  • 1,157
  • 1
  • 12
  • 33
  • I don't know of anything that would stop it from working, have you tried? – LightGuard Feb 29 '16 at 14:45
  • Nope, do you suggest I should ? That would be wonderful, instead of learning to use JSFUnit for my older project, and Arquillian Warp for the newer one. – abdelrahman-sinno Feb 29 '16 at 15:07
  • Yeah, try it. If it doesn't work create some tickets and maybe we can get it working for jsf 1.2 – LightGuard Feb 29 '16 at 15:08
  • I like having the possibility :) It has been at least 4 years of no activity on this progress, I'll give it a try anyhow since it's worth it.. but still it's very weird how this thing is not clear. – abdelrahman-sinno Feb 29 '16 at 15:14
  • It doesn't seem like it works out of the box yet, seeing this: SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener java.lang.NoClassDefFoundError: javax/faces/context/FacesContextWrapper – abdelrahman-sinno Mar 02 '16 at 13:15
  • Well, you have your answer now :) create a JIRA ticket and see what happens from there. – LightGuard Mar 02 '16 at 13:51
  • Filed ticket [ARQ-2015](https://issues.jboss.org/browse/ARQ-2015), a real disappointment.. – abdelrahman-sinno Mar 02 '16 at 14:41
  • Sorry, JSF 1.2 is 10 years old, that's really a long time for things to be supported. You may simply be stuck with JSFUnit or similar until you're able to upgrade to a more current version of JSF. – LightGuard Mar 02 '16 at 14:45
  • I don't mind that, if there was a single working example for JSFUnit that would run Tomcat. So far, I've spent many hours with the available projects and running into missing dependencies or else runtime issues due to incompatible versions. – abdelrahman-sinno Mar 03 '16 at 12:10

1 Answers1

0

Looking at the Readme on Github, JSF2 is mentioned to be supported, which leads me to believe that Arquillian Warp does not work with JSF 1.2.

abdelrahman-sinno
  • 1,157
  • 1
  • 12
  • 33