You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by salmon_ok <sa...@163.com> on 2014/01/22 08:53:44 UTC

Karaf Test Framework

    hello,can you tell me somethig about  " Karaf Test Framework "  ,where i
can find th detail introduction about it .
  thrank you very much ,
I am from china.



--
View this message in context: http://karaf.922171.n3.nabble.com/VOTE-Apache-Karaf-Cave-2-3-0-release-tp4030982p4031244.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Karaf Test Framework

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

If you use Pax Exam 3.4.0, you don't need to provide the Karaf version 
like this. You use directly the karafVersion configuration, and Pax Exam 
will automatically download and use the Karaf version.

I have a local branch where I updated the developers guide, I will push it.

Regards
JB

On 01/23/2014 11:39 AM, salmon_ok wrote:
> http://karaf.apache.org/manual/latest-2.3.x/developers-guide/writing-tests.html
>
> "Karaf Test Framework"
>      @Configuration
>      public Option[] config() {
>          return new Option[]{ karafDistributionConfiguration().frameworkUrl(
>
> maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("zip").versionAsInProject())
>              .karafVersion("2.2.4").name("Apache Karaf")};
>      }
>
> I* want to add my bundle to karaf by program not features or other,just as:*
>
>      @Configuration
>      public Option[] config() {
>          return new Option[]{ karafDistributionConfiguration().frameworkUrl(
>
> maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("zip").versionAsInProject())
>              .karafVersion("2.2.4").artifactId("apache-karaf").versi....
>             maven().groupId("XXX")..........
>         };
>      }
> *but it is not effetive .
>
> can you help me ?*
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/VOTE-Apache-Karaf-Cave-2-3-0-release-tp4030982p4031292.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf Test Framework

Posted by salmon_ok <sa...@163.com>.
http://karaf.apache.org/manual/latest-2.3.x/developers-guide/writing-tests.html

"Karaf Test Framework"  
    @Configuration
    public Option[] config() {
        return new Option[]{ karafDistributionConfiguration().frameworkUrl(
           
maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("zip").versionAsInProject())
            .karafVersion("2.2.4").name("Apache Karaf")};
    }

I* want to add my bundle to karaf by program not features or other,just as:*

    @Configuration
    public Option[] config() {
        return new Option[]{ karafDistributionConfiguration().frameworkUrl(
           
maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("zip").versionAsInProject())
            .karafVersion("2.2.4").artifactId("apache-karaf").versi....
           maven().groupId("XXX")..........
       };
    }
*but it is not effetive .

can you help me ?*



--
View this message in context: http://karaf.922171.n3.nabble.com/VOTE-Apache-Karaf-Cave-2-3-0-release-tp4030982p4031292.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Karaf Test Framework

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

Karaf Test Framework is now fully part of Pax Exam.

You can find some details here:
http://karaf.apache.org/manual/latest-2.3.x/developers-guide/writing-tests.html

And you can take a look on the Karaf itests itself to see how it works 
(on Karaf subprojects, like Cellar).

Regards
JB

On 01/22/2014 08:53 AM, salmon_ok wrote:
>      hello,can you tell me somethig about  " Karaf Test Framework "  ,where i
> can find th detail introduction about it .
>    thrank you very much ,
> I am from china.
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/VOTE-Apache-Karaf-Cave-2-3-0-release-tp4030982p4031244.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com