-
1. Re: Arquillian warp, changing component state during a phase
anthonyhib Oct 4, 2012 9:53 AM (in response to anthonyhib)1 of 1 people found this helpfulanswer from Lukas
Hey Anthony,
you can surely modify the server's state from ServerAssertion.
But you must be aware of consequences. :-)
What you have did is completely valid - you modified a bean state in order to influence navigation system.
-
2. Re: Arquillian warp, changing component state during a phase
lfryc Oct 5, 2012 6:54 AM (in response to anthonyhib)Hey Anthony,
this is good point, you can certainly run any action in the verification process which influences state.
Thus it is opening you new options for testing behavior what you would need to "mock" other way otherwise.
However renaming ServerAssertion to ServerAction would imply you expect that implementation will trigger action,
which is kind of strong implication.
Warp.execute(ClientAction).verify(ServerAssertion);
Warp.execute(ClientAction).trigger(ServerAction);
I'm opened to discussion here - what others think about that?
-
3. Re: Arquillian warp, changing component state during a phase
anthonyhib Oct 5, 2012 8:33 AM (in response to lfryc)you are right.
However .verify() implies that you only check some states in the Server side.
I don't have the answer
-
4. Re: Arquillian warp, changing component state during a phase
mkouba Oct 5, 2012 9:11 AM (in response to lfryc)I think that verify is in fact a kind of action. So if the purpose of renaming is to generalize the meaning it makes sense to me ...