| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff 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 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments