Re: [jbosstools-dev] Unit tests
by Andersen Max
This should actually be on jbosstools-dev ;)
btw. the article describing this is http://www.modumind.com/2007/06/20/unit-testing-plug-ins-with-fragments/
/max
On Jul 8, 2010, at 11:48, Gary Brown wrote:
> OK thanks - I'll see what I can find out.
>
> Regards
> Gary
>
> ----- "Andersen Max" <max.andersen(a)redhat.com> wrote:
>
>> found it ...the magic sauce is to use test plugin fragments.
>> Such fragments have access to the internals.
>>
>> But not sure how well that works in Tycho or even PDE build ?
>>
>> /max
>>
>> On Jul 8, 2010, at 11:01, Andersen Max wrote:
>>
>>> Good question - eclipse tend to export all classes anyway. (googling
>> right now ;)
>>>
>>> May I ask how you exclude the tests from the build when they are in
>> together with the eclipse PDE plugin project ?
>>>
>>> m/ax
>>>
>>> On Jul 7, 2010, at 22:57, Nick Boldt wrote:
>>>
>>>> Not sure. Coying a wider audience for advice.
>>>>
>>>> N
>>>>
>>>> On 07/07/2010 01:22 PM, Gary Brown wrote:
>>>>> Hi Nick
>>>>>
>>>>> I'm starting to reorg the Savara plugins to use Tycho, and one of
>> the problems I have with splitting the tests out into a separate
>> plugin (in the tests sub-folder) is that some of the tests are for
>> classes that are no exported from the plugin being tested.
>>>>>
>>>>> What is the general wisdom in these situations? How can these
>> classes be tested without having to export the internal packages?
>>>>>
>>>>> Regards
>>>>> Gary
>>>>
>>>> --
>>>> Nick Boldt :: JBoss by Red Hat
>>>> Productization Lead :: JBoss Tools & Dev Studio
>>>> Release Engineer :: Eclipse Modeling & Dash Athena
>>>> http://nick.divbyzero.com
>>>>
>>>
13 years, 9 months
Is there a tool for working out transitive bundle dependencies
by Tom Fennelly
Hi.
I'm trying to remove a dependency on a bundle (EMF) from a plugin, but I
still seem to be pulling it in, even after removing all visible
references to it through the plugin.xml. I can see the jars are still
listed in "Plug-in Dependencies". So... I'm guessing it's getting
pulled in transitively through one of the other bundles.
So... I was wondering if there was a tool/utility that draws a
dependency tree of the dependencies.. something like the "tree" goal of
the "dependencies" plugin in maven?
Regards,
T.
13 years, 9 months
Re: [jbosstools-dev] Server Runtime in automatic tetst
by Denis Golovin
I remember we have it in JBossASAdapterInitializer, which is disabled
for now, but you can make static private methods public an use them in
tests.
Use one of the system properties from this list
-Djbosstools.test.jboss.home.3.2
-Djbosstools.test.jboss.home.4.0
-Djbosstools.test.jboss.home.4.2
-Djbosstools.test.jboss.home.5.0
-Djbosstools.test.jboss.home.5.1
and open issue for me to enable required system property for jsf tests
Thanks
On 06/25/2010 06:29 AM, Viacheslav Kabanovich wrote:
> Denis,
>
> For https://jira.jboss.org/browse/JBIDE-6540, I would like to add an
> automatic test that adds JSF capabilities to Java project. Wizard can
> finish only if there is a Server Runtime in the test workspace. Do we
> have API to create a runtime at test start?
>
>
> Best regards,
> Slava
13 years, 9 months