-
-
Notifications
You must be signed in to change notification settings - Fork 1k
#1308 Switch to JUnit Jupiter and do not use Toolchains for the integration tests #2013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| /* | ||
| * Copyright MapStruct Authors. | ||
| * | ||
| * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 | ||
| */ | ||
| package org.mapstruct.itest.tests; | ||
|
|
||
| import java.util.ArrayList; | ||
| import java.util.Collection; | ||
| import java.util.List; | ||
|
|
||
| import org.junit.jupiter.api.condition.JRE; | ||
| import org.mapstruct.itest.testutil.extension.ProcessorTest; | ||
|
|
||
| /** | ||
| * Adds explicit exclusions of test mappers that are known or expected to not work with specific compilers. | ||
| * | ||
| * @author Andreas Gudian | ||
| */ | ||
| public final class FullFeatureCompilationExclusionCliEnhancer implements ProcessorTest.CommandLineEnhancer { | ||
| @Override | ||
| public Collection<String> getAdditionalCommandLineArguments(ProcessorTest.ProcessorType processorType, | ||
| JRE currentJreVersion) { | ||
| List<String> additionalExcludes = new ArrayList<>(); | ||
|
|
||
| // SPI not working correctly here.. (not picked up) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we fix this in a later phase? Make an issue? I guess we rely heavily on SPI.. I guess somewhere the META_INF is not on the classpath.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This comes from earlier, I didn't write a single new line in this class. Just pulled it outside of the deleted |
||
| additionalExcludes.add( "org/mapstruct/ap/test/bugs/_1596/*.java" ); | ||
| additionalExcludes.add( "org/mapstruct/ap/test/bugs/_1801/*.java" ); | ||
|
|
||
| switch ( currentJreVersion ) { | ||
| case JAVA_9: | ||
| // TODO find out why this fails: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. did you investigate this?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nope, this is an old TODO :), so I left it |
||
| additionalExcludes.add( "org/mapstruct/ap/test/collection/wildcard/BeanMapper.java" ); | ||
| break; | ||
| default: | ||
| } | ||
|
|
||
| Collection<String> result = new ArrayList<String>( additionalExcludes.size() ); | ||
| for ( int i = 0; i < additionalExcludes.size(); i++ ) { | ||
| result.add( "-DadditionalExclude" + i + "=" + additionalExcludes.get( i ) ); | ||
| } | ||
|
|
||
| return result; | ||
| } | ||
| } | ||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this really the author?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this was within the
FullFeatureTestand was written by Andreas