geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Forrest Xia (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (GERONIMO-5879) A simple blueprint test case to verify if geronimo server supports blueprint application
Date Tue, 08 May 2012 06:32:45 GMT

     [ https://issues.apache.org/jira/browse/GERONIMO-5879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Forrest Xia resolved GERONIMO-5879.
-----------------------------------

       Resolution: Not A Problem
    Fix Version/s: 3.0

Tina, thank you for providing this test case first, but not sure if you ever noticed that
there are some test cases in aries-testsuite which are already using blueprint, so we won't
accept this case for duplicated reason.
                
> 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
>            Assignee: Tina Li
>            Priority: Minor
>             Fix For: 3.0
>
>         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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message