Return-Path: X-Original-To: apmail-karaf-user-archive@minotaur.apache.org Delivered-To: apmail-karaf-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6F8DC10657 for ; Fri, 23 Aug 2013 16:12:34 +0000 (UTC) Received: (qmail 14923 invoked by uid 500); 23 Aug 2013 16:12:33 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 14684 invoked by uid 500); 23 Aug 2013 16:12:33 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 14670 invoked by uid 99); 23 Aug 2013 16:12:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 16:12:32 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marcos@jitisoft.com designates 209.85.213.175 as permitted sender) Received: from [209.85.213.175] (HELO mail-ye0-f175.google.com) (209.85.213.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Aug 2013 16:12:25 +0000 Received: by mail-ye0-f175.google.com with SMTP id r10so183721yen.6 for ; Fri, 23 Aug 2013 09:12:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:mime-version:content-type:subject:date :in-reply-to:to:references:message-id; bh=eUVWieHsuBXBXifQ0rM0U4gtsW01eDtdgcydsnaBbog=; b=kHuavHeK4rOoTGjETuPWvwnVy+7d2at81gztzwhVzWdRVo3Jv88SxU9oi3/gA5t1nT oOlDSTd/qJHWXs1xkKqksoma00lOQBYXLLudnxOD6VVjpHG+785XdwfvnjeKBhJSepPh kzAsQ1D1D62nv+LmoQHy0lbPeBosgsqoNxnZL2JHTsUjMocYhO3aV7WCttLROjVT4iGl eJ4olWYwuNV6u80ZxKQMYsZ4bVHha3V0iQHmJ+YeIBQ5UU71W28X/wUMrvpW6fWyu1f/ /ymdtsjidSPZO3AQ3kJ67DvbYj0wytJboqEw2HnpoKQQAgaa4RtJc6wBivtdDGs+XiKK h2IA== X-Gm-Message-State: ALoCoQnUMhrv9Cx2VosyObeQ5tHaEfF4dLAp3QT5kOY1J8lQD2xhyDdEXhFzCoSZksx3Fy2W28yg X-Received: by 10.236.13.3 with SMTP id a3mr283149yha.21.1377274324921; Fri, 23 Aug 2013 09:12:04 -0700 (PDT) Received: from [172.16.1.13] (c-24-98-110-85.hsd1.ga.comcast.net. [24.98.110.85]) by mx.google.com with ESMTPSA id y69sm619248yhd.27.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Aug 2013 09:12:04 -0700 (PDT) From: Marcos Mendez Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: multipart/alternative; boundary="Apple-Mail=_AB578C71-F2B2-4824-80D5-A6E5C8754D64" Subject: Re: Cannot refer to test classes from a TestIntegration class (karaf-pax exam) Date: Fri, 23 Aug 2013 12:12:01 -0400 In-Reply-To: <1377273944761-4029539.post@n3.nabble.com> To: user@karaf.apache.org References: <1377273944761-4029539.post@n3.nabble.com> Message-Id: <1F7C0F36-AA53-4922-8A13-A270DF3F18FA@jitisoft.com> X-Mailer: Apple Mail (2.1283) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_AB578C71-F2B2-4824-80D5-A6E5C8754D64 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hope this helps.... You should never forget that under the hood Pax Exam will create a = bundle called probe, that contains all your tests. That means that if = your tests extend a class that is not present in the current module, it = won't be found by your probe bundle. In older versions of Pax Exam you = could pretty easily modify the contests of the probe and include = additional classes from any module visible to your project. In the 2.x = series its more complicated. The easiest way to go is to make sure your install the bundle that = contains the super class to the target container.=20 = http://iocanel.blogspot.com/2012/03/how-to-deal-with-common-problems-in-pa= x.html On Aug 23, 2013, at 12:05 PM, sankar wrote: > Hello, >=20 > When I run an integration test via pax exam, it seems that the test = probe is > only the **TestIntegration=20 > class and not the rest of test classes (included in same or different = file, > it does not matter).=20 >=20 > As a workaround, I add the test class logic in source code but this is = a > temporary solution. >=20 > Could you please advice on a better solution?Is there a way at all? > Thank you >=20 > extra info : > karaf 2.3.1 > pax exam 2.6.0 > scala code >=20 >=20 >=20 >=20 > -- > View this message in context: = http://karaf.922171.n3.nabble.com/Cannot-refer-to-test-classes-from-a-Test= Integration-class-karaf-pax-exam-tp4029539.html > Sent from the Karaf - User mailing list archive at Nabble.com. --Apple-Mail=_AB578C71-F2B2-4824-80D5-A6E5C8754D64 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
You should never forget that = under the hood  Pax Exam will create a bundle = called probe, that contains all your tests. That means that if your = tests extend a class that is not present in the current module, it won't = be found by your probe bundle. In older versions of  Pax Exam you could pretty easily = modify the contests of the probe and include additional classes from any = module visible to your project. In the 2.x series its more = complicated.

The easiest way to go is to = make sure your install the bundle that contains the super class to the = target container. 

Hello,

When I run an integration test via pax = exam, it seems that the test probe is
only the **TestIntegration =
class and not the rest of test classes (included in same or = different file,
it does not matter).

As a workaround, I add = the test class logic in source code but this is a
temporary = solution.

Could you please advice on a better solution?Is there a = way at all?
Thank you

extra info :
karaf 2.3.1
pax exam = 2.6.0
scala code




--
View this message in = context: http://karaf.9221= 71.n3.nabble.com/Cannot-refer-to-test-classes-from-a-TestIntegration-class= -karaf-pax-exam-tp4029539.html
Sent from the Karaf - User mailing = list archive at Nabble.com.
= --Apple-Mail=_AB578C71-F2B2-4824-80D5-A6E5C8754D64--