Skip to content
This repository was archived by the owner on Dec 15, 2018. It is now read-only.
This repository was archived by the owner on Dec 15, 2018. It is now read-only.

InjectParamsTest TCK test failure with CXF #168

@chkal

Description

@chkal

The TCK verifies that parameters can be injected into resource fields and properties as required by the JAX-RS spec.

Unfortunately one of the tests fails with CXF.

[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   InjectParamsTest.injectFieldParam:119 
Expected: a string containing "Value = 'foo-bar'"
     but: was "Value = ''"
[INFO] 
[ERROR] Tests run: 5, Failures: 1, Errors: 0, Skipped: 0

This test basically verifies, that a resource field can be annotated with @QueryParam and that the value of a corresponding parameter is injected into this field.

https://github.com/mvc-spec/mvc-tck/blob/c050db27be170ff8fc7f0f41ab61e45c6b69fcc7/tests/src/main/java/org/mvcspec/tck/tests/mvc/controller/inject/InjectParamsController.java#L35-L36

I don't understand why this fails. It works fine with Glassfish and Wildfly. I don't think that this is something caused by Ozark. Perhaps CXF doesn't support injection into resources fields correctly?

It would be great if somebody could help verifying this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions