[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[riena-dev] Re: Idea for fixing RienaTestCase.addPluginXml()
|
I've been experimenting a bit more: using the master token does not
solve anything.
I noticed that the test methods that fail (for example
NavigationProcessorTest.testNavigate() and
ExtensionInjectorWithMultipleExtensionPointIdTest.testWithEPsAAndContribsAandB)
are green when run individually (for example commenting out all the
other methods in each test expect the failing method -> the failing
method then passes).
It seems that other methods in NavigationProcessorTest and
ExtensionInjector...Test cause side effects (for example the stuff
that was added to the plugin.xml is not fully removed) which then
could cause the later test to fail.
Elias.
On Thu, Jan 21, 2010 at 12:26 PM, Elias Volanakis
<elias@xxxxxxxxxxxxxxxxx> wrote:
> A quick idea regarding fixing the RienaTestCase.addPluginXml method():
>
> I noticed it uses the user token - which is a "less privileged" token.
> We should try to invoke it with the master token, which allows all
> operations. The master token is private but should be obtainable with
> a bit of reflection hackery :-o from ExtensionRegistry.masterToken
>
> Kind regards,
> Elias.
>
> --
> Elias Volanakis | Technical Lead | http://eclipsesource.com
> elias@xxxxxxxxxxxxxxxxx | +1 503 929 5537 | @evolanakis
>
--
Elias Volanakis | Technical Lead | http://eclipsesource.com
elias@xxxxxxxxxxxxxxxxx | +1 503 929 5537 | @evolanakis