[
https://issues.jboss.org/browse/ARQ-2170?page=com.atlassian.jira.plugin.s...
]
kostd kostd edited comment on ARQ-2170 at 1/19/18 1:03 PM:
-----------------------------------------------------------
Created arquillian-junit-core.jar without testInstance toEnrich addition. Now only one
enrichment, only one soap call, Rules works as usual.
was (Author: kostd):
Created arquillian-junit-core without testInstance toEnrich addition. Now only one
enrichment, only one soap call, Rules works as usual.
RulesEnricher doubles each test enrichment
------------------------------------------
Key: ARQ-2170
URL:
https://issues.jboss.org/browse/ARQ-2170
Project: Arquillian
Issue Type: Bug
Components: core
Environment: arquillian-junit-core-1.1.11.Final (all versions affected)
Reporter: kostd kostd
RulesEnricher created in ARQ-1954
1. RulesEnricher is not implementor of TestEnricher, so it cannot be overrided through
LoadableExtension.
2. RulesEnricher#enrichRulesAndTestInstance adds into collection toEnrich test instance:
{code}
toEnrich.add(event.getTestInstance());
{code}
https://github.com/arquillian/arquillian-core/blob/master/junit/core/src/...
So, if MyTest have`nt field rules, will be only one MyTest enrichment. If MyTest contains
one or more test rule, will be two MyTest enrichments.
Each testEnrichment of MyTest do a soap call to server to prepare data for test. It is
very important to me, one or two soap call will happen.
How can I change this behaviour?
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)