File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/test/java/org/hibernate/infra/sync/jira/export Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 2828@ TestProfile (ExportProjectTest .Profile .class )
2929@ QuarkusTest
3030class ExportProjectTest {
31+
32+ private static final String DEFAULT_REPORTER_NAME =
"[email protected] " ;
33+ private static final String DEFAULT_REPORTER_DISPLAY_NAME = "Hibernate Admins" ;
34+
3135 public static class Profile implements QuarkusTestProfile {
3236 @ Override
3337 public Map <String , String > getConfigOverrides () {
@@ -123,8 +127,8 @@ void export() throws IOException {
123127 Object reporter = issue .fields .reporter == null
124128 ? null
125129 : projectGroup .users ().mapping ().getOrDefault (issue .fields .reporter .accountId , null );
126- row .add (reporter );
127- row .add (reporter != null ? issue .fields .reporter .displayName : null );
130+ row .add ( reporter == null ? DEFAULT_REPORTER_NAME : reporter );
131+ row .add (reporter != null ? issue .fields .reporter .displayName : DEFAULT_REPORTER_DISPLAY_NAME );
128132 Object assignee = issue .fields .assignee == null
129133 ? null
130134 : projectGroup .users ().mapping ().getOrDefault (issue .fields .assignee .accountId , null );
You can’t perform that action at this time.
0 commit comments