[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Problem with Tycho 1.7.0 / JUnit 5 / Java 11
|
- From: Christian Dietrich <christian.dietrich@xxxxxxxxx>
- Date: Mon, 18 May 2020 10:49:12 +0200
- Autocrypt: addr=christian.dietrich@xxxxxxxxx; keydata= mQINBFv8HLMBEACt83uOc7r5AqOhowcQoA/AX0JZPE0iHcheRTqb6XwgDepSuT+/5fU6mu/k s9OXwFgmzWNZPHhOd2ww5QEg4PaF46butO08lzog8/u20WN+FLMkoTbNuBKnwAkdHBWrFGdw LL8eQMAY1Fkw1+8RlrO1Z4Zs+XUO4j/A2cJ1UMNgn0ronPh9jMteNm4IswWqM4dWC26gDBYD CbKf724sLPf3lJooRu38YL/fpQYmyfkTIsJS0xmLpq7XdkMWJgGvzbW9bhM59VhfeLWggLET KORm5Q7p5/QGDgXfoEFMmjvR4mP89JqKGvMzHzKcVEZVG/bWCsaTlx6wM2XtY81u0B5WPcHT J6zjtcxF1dXsNHwm+qMKavGEOZXNUz/gurlx2RSkbT7evnLkvzyUMgw/meSaLyf40X2J/tu2 TgWmUkdw+cj8Co8IGlLgBEIQwj51C6V59eTCnRU1Yl3ezGqVOdUOF/zmov8ejz+mS3QL7JNv gvGHDaIVG8QRomERXVPsk+Uqmcx7Ex+xZQdUMOOAxXQjX6e78a+5+DIvqOsSHSmBQwv7ki8b kV98/OrMCdU9vKVya5HtgIDgRS9wWjKtquziylzKcGO9Pg3a1+znfoUt2gPrMndMJfWRir82 5fJgqbsnyWTS5UeU3j1Wgs1BjqQk0n64EzlYt8sh9XO1r7LZDwARAQABtDFDaHJpc3RpYW4g RGlldHJpY2ggPGNocmlzdGlhbi5kaWV0cmljaEBpdGVtaXMuZGU+iQJUBBMBCgA+FiEE0/r4 jhdhFs7esWhLcp7qoW1Fo9QFAlv8HLMCGwMFCQm/p4AFCwkIBwMFFQoJCAsFFgIDAQACHgEC F4AACgkQcp7qoW1Fo9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
- Delivered-to: tycho-user@xxxxxxxxxxx
- List-archive: <https://www.eclipse.org/mailman/private/tycho-user>
- List-help: <mailto:tycho-user-request@eclipse.org?subject=help>
- List-subscribe: <https://www.eclipse.org/mailman/listinfo/tycho-user>, <mailto:tycho-user-request@eclipse.org?subject=subscribe>
- List-unsubscribe: <https://www.eclipse.org/mailman/options/tycho-user>, <mailto:tycho-user-request@eclipse.org?subject=unsubscribe>
- User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.8.0
but indeed. problem can also be found when running as plugin test
question: if i remember correct there was a posibility to run tests as
pure maven surefire tests instead of tycho-surefire plugin tests, but i
could not find it at a first glance. or do i remember wrong?
~Christian
Am 18.05.20 um 10:32 schrieb Christoph Läubrich:
> In general, using ServiceLoader without specific classloader is
> problematic in OSGi. So the first thing to try is passing a suitable
> classloader.
>
>
> Am 18.05.20 um 10:20 schrieb Stefan Kapferer:
>> Hi there
>>
>> Can anyone help me with the problem described here
>> https://www.eclipse.org/forums/index.php/m/1827553/?
>>
>> Have a problem running JUnit tests (Xtext tests) with Maven and Tycho
>> under Java 11.
>>
>> As you can see here
>> https://www.eclipse.org/forums/index.php?t=msg&th=1103807&goto=1827558&#msg_1827558,
>> Christian thinks it is a bug in Tycho.
>>
>> He provided a simple unit test to reproduce the problem:
>>
>> /package org.xtext.example.mydsl.tests;//
>> ////
>> //import java.util.ServiceLoader;//
>> ////
>> //import org.eclipse.xtext.ISetup;//
>> //import org.eclipse.xtext.xbase.lib.IterableExtensions;//
>> //import org.junit.Assert;//
>> //import org.junit.jupiter.api.BeforeEach;//
>> //import org.junit.jupiter.api.Test;//
>> ////
>> //public class DemoTest {//
>> ////
>> //@BeforeEach//
>> //public void setup() {//
>> //ServiceLoader<ISetup> sl = ServiceLoader.<ISetup>load(ISetup.class);//
>> //Assert.assertFalse(IterableExtensions.isEmpty(sl));//
>> //}//
>> ////
>> //@Test//
>> //public void test02_openFile() {//
>> //}//
>> //}/
>>
>> I also attached a sample project there, where the unit tests fail
>> with Maven and Tycho. The tests however run perfectly fine within
>> Eclipse.
>>
>> Does someone here know what the problem could be or does know a
>> workaround?
>>
>> Thanks for your help and best regards,
>>
>> Stefan
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/tycho-user
>>
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/tycho-user
--
Christian Dietrich (Diplom-Informatiker (BA))
Softwareentwickler / -Architekt
Committer and Co-Lead for Eclipse Xtext
Tel.: +49 (0) 711 / 34 21 91-0
Fax.: +49 (0) 711 / 34 21 91-29
Mobil: +49 (0) 151 / 173969 17
Mail: christian.dietrich@xxxxxxxxx
XING: https://www.xing.com/profile/Christian_Dietrich8
Web: http://www.itemis.de
Skype: christiandietrich1982
itemis AG
Niederlassung Süd
Industriestraße 6
70565 Stuttgart
Rechtlicher Hinweis:
Registergericht: Amtsgericht Dortmund HRB 20621 | Sitz der Gesellschaft: Lünen
Vorstand: Jens Wagener (Vorsitzender) | Wolfgang Neuhaus | Abdelghani El Kacimi
Aufsichtsrat: Prof. Dr. Burkhard Igel (Vors.) | Michael Neuhaus | Stephan Grollmann