Bug 1084511
| Summary: | SwitchYard properties not available in JUnit test | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Fuse Service Works 6 | Reporter: | Anton Giertli <agiertli> | ||||
| Component: | SwitchYard | Assignee: | Tomohisa Igarashi <toigaras> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Jiri Sedlacek <jsedlace> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.0.0 GA | CC: | ganandan, oskutka, soa-p-jira, tasato | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2015-01-30 12:49:44 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Anton Giertli
2014-04-04 14:21:58 UTC
Created attachment 882739 [details]
maven reproducer
Confirmed that this still exists with SY 2.0.0.Beta1. There is a unit test for property injection in the bean component test suite, so not sure what's going wrong here. You need to trigger full deployment process to get implementation property injected. The unit test run by SY test kit triggers simplified version of deployment by default, and you need to specify the location of switchyard.xml to trigger full deployment.
--- src/test/java/com/example/switchyard/switchyard_example/GreetServiceTest.java.orig 2015-01-30 21:44:04.540136135 +0900
+++ src/test/java/com/example/switchyard/switchyard_example/GreetServiceTest.java 2015-01-30 21:42:57.553269218 +0900
@@ -25,7 +25,7 @@
import org.switchyard.component.test.mixins.cdi.CDIMixIn;
@RunWith(SwitchYardRunner.class)
-@SwitchYardTestCaseConfig(mixins = CDIMixIn.class)
+@SwitchYardTestCaseConfig(mixins = CDIMixIn.class, config = "META-INF/switchyard.xml")
public class GreetServiceTest {
@ServiceOperation("GreetingService.greet")
|