Well, this looks weird anyhow
@Stateless
public class AnnotatedFieldInjectionStatefulBean {
compare the name and the annotation....
And the additional error messages
are:org.apache.openejb.config.ValidationWarning: @Init is ignored for beans of
type Stateless. Class:
org.apache.openejb.test.stateful.AnnotatedFieldInjectionStatefulBean Method:
create"
"org.apache.openejb.config.ValidationWarning: @Remove is ignored for beans of
type Stateless. Class:
org.apache.openejb.test.stateful.AnnotatedFieldInjectionStatefulBean Method:
remove""
Well, yes, true!
Is this a negative test bean? ^^
On Tuesday, 15 May 2018, 21:48:26 CEST, Mark Struberg
<[email protected]> wrote:
hi folks!
I get 2 unit test failures which look completely weird to me.Plus they pass in
the IDE but fail in mvn.
ERROR] Failures:
[ERROR] CheckDescriptorLocationTest.testWarWithDescriptorInMetaInf Keys do
not match expected:<...or.incorrectLocation[]> but was:<...or.incorrectLocation[
ignoredMethodAnnotation
ignoredMethodAnnotation]>
[ERROR] CheckDescriptorLocationTest.testWarWithDescriptorInRoot Keys do not
match expected:<...or.incorrectLocation[]> but was:<...or.incorrectLocation[
ignoredMethodAnnotation
ignoredMethodAnnotation]>
The unit test in question is
org.apache.openejb.config.CheckDescriptorLocationTest#testWarWithDescriptorInRoot
This bundles a single FooBean.class with a single error.We get this error, but
also a few other test failures which apparently should not happen.
Those come from beans in transitive dependency projects like
openejb-itests-beans.
It passes in my IDE since there the classpath is different...
Any idea what happened?
LieGrue,strub