[
https://issues.apache.org/jira/browse/GERONIMO-5879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tina Li updated GERONIMO-5879:
------------------------------
Attachment: GERONIMO-5879.patch
> A simple blueprint test case to verify if geronimo server supports blueprint
> application
> ----------------------------------------------------------------------------------------
>
> Key: GERONIMO-5879
> URL: https://issues.apache.org/jira/browse/GERONIMO-5879
> Project: Geronimo
> Issue Type: Test
> Security Level: public(Regular issues)
> Components: testsuite
> Affects Versions: 3.0
> Reporter: Tina Li
> Priority: Minor
> Attachments: GERONIMO-5879.patch
>
>
> 1.This blueprint applicaion named "blueprint-test", contains four
> components:"blueprint-api","blueprint-server","blueprint-client" and
> "blueprint-eba".
> 2."blueprint-api" contains an interface named "HelloWorldService" and
> contains two functions:"public String hello(String sayhello)" and "public
> void startUp()".
> 3."blueprint-server" contains a class named "HelloWorldServiceImpl" which
> used to implement the "HelloWorldService" interface defined in
> "blueprint-api". This component also defined "blueprint.xml" resource under
> \resouces\OSGI-INF\blueprint package.
> In "blueprint.xml", the "sayhello" property is injected into "helloservice"
> bean. Service "helloservice" is registered under "HelloWorldService"
> interface by service manager and can be referenced by name "helloservice".
> 4."blueprint-client" defined an WAB application. This component also defined
> "blueprint.xml" resource under \resouces\OSGI-INF\blueprint package. In
> "blueprint.xml", the "helloWorldService" property is injected into
> "helloclient" bean and "helloservice" which registered in Step3 can be
> accessed.
> In the servelt named "HelloWorldClient", the "helloWorldService" instance
> will call the "hello" method defined in "HelloWorldService" and the result
> will be printed in the web console.
> The calling result will contain:"A message from the property: server A
> message from the Function: From Client". In the result, "server" as the value
> of property "sayhello" and "From Client" as an argument of "hello" function
> are passed successfully.
> 5."blueprint-eba" contains three components which are
> "blueprint-api","blueprint-server","blueprint-client". and is packing as an
> "eba".
> A test class named "ConsoleTest"will get the result of created "WAB" in Step
> 4 and get the calling result.
> 6.Under the "blueprint-test" directory, excute this test case using
> command:mvn clean install -Pit -DgeronimoHome=<Geronimo_home> and check the
> excuted results in failsafe-reports folder.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira