[forge-dev] Help with RichFaces testing (FORGE-460)

Richard Kennard richard at kennardconsulting.com
Fri Jan 27 15:53:00 EST 2012


Hi Lincoln,

What do you mean by "*If* the richfaces plugin were deployed in a maven repository". Is it currently? If not, do you intend to? Or are you suggesting I 
could deploy it to a local repo or something?

But beyond this, couldn't we test this as a 'real' integration test somehow? Does Forge have that? An integration test that actually executes the dist? I 
would like this anyway, because one of my bugs worked fine in all test-harness tests but not in the actual dist. See...

             org.jboss.forge.scaffold.faces.metawidget.inspector.propertystyle.ForgePropertyStyle:

             // TODO: test this not using annotationSource.getClass().getClassLoader() (will require integration test)


Regards,

Richard.

On 28/01/2012 7:22 AM, Lincoln Baxter, III wrote:
> Unless you can reference the richfaces plugin code itself, there is no way to do this currently, since the plugin sources need to be available to the 
> test-runner (like using any other library in a test.)
>
> If the richfaces plugin were deployed in a maven repository, you could include it in your pom, specifying <scope>test</scope>.
>
> Otherwise, not possible at the moment because plugins are loaded by JBoss modules, and jboss modules is not used by the test harness (because it would 
> not really be possible)
>
> ~Lincoln
>
> On Fri, Jan 27, 2012 at 2:06 AM, Richard Kennard <richard at kennardconsulting.com <mailto:richard at kennardconsulting.com>> wrote:
>
>     Hi guys,
>
>     Can someone help with RichFaces testing? Currently in...
>
>         org.jboss.forge.scaffold.faces.FacesScaffoldTest.testGenerateFromEntityWithRichFaces()
>
>     ...I have a commented out line...
>
>         Project project = setupScaffoldProject();
>         // getShell().execute("richfaces setup");
>
>     How can I make that line work? How can I get the plugin installed for my test?
>
>     Regards,
>
>     Richard.
>     _______________________________________________
>     forge-dev mailing list
>     forge-dev at lists.jboss.org <mailto:forge-dev at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/forge-dev
>
>
>
>
> -- 
> Lincoln Baxter, III
> http://ocpsoft.com
> http://scrumshark.com
> "Keep it Simple"
>
>
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev



More information about the forge-dev mailing list