FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Test issue 4086 unannotated helper result · mapstruct/mapstruct@2292cd4 · GitHub

Commit 2292cd4

Browse files
authored
Test issue 4086 unannotated helper result
1 parent af42e51 commit 2292cd4

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright MapStruct Authors.
3+
*
4+
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
5+
*/
6+
package org.mapstruct.ap.test.nullcheck.jspecify;
7+
8+
import org.mapstruct.ap.testutil.IssueKey;
9+
import org.mapstruct.ap.testutil.ProcessorTest;
10+
import org.mapstruct.ap.testutil.WithClasses;
11+
import org.mapstruct.ap.testutil.WithJSpecify;
12+
import org.mapstruct.ap.testutil.runner.Compiler;
13+
14+
import static org.assertj.core.api.Assertions.assertThat;
15+
16+
@IssueKey("4086")
17+
@WithJSpecify
18+
@WithClasses(Issue4086Mapper.class)
19+
class Issue4086Test {
20+
21+
@ProcessorTest(Compiler.JDK)
22+
void shouldUseUnannotatedMappingMethodResultForNonNullConstructorParameter() {
23+
Issue4086Mapper.Target target = Issue4086Mapper.INSTANCE.map( new Issue4086Mapper.Source() );
24+
25+
assertThat( target.getPayload().getValue() ).isEqualTo( "default" );
26+
}
27+
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL