Skip to content

Commit

Permalink
[vividus-to-zephyr-exporter] Fix validation for zephyr.exporter.sourc…
Browse files Browse the repository at this point in the history
…e-directory
  • Loading branch information
VolhaHurynovich committed Aug 10, 2022
1 parent 5cf527a commit 6502e02
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2021 the original author or authors.
* Copyright 2019-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,17 +19,19 @@
import java.nio.file.Path;
import java.util.List;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;
import org.vividus.zephyr.model.TestCaseStatus;

@Validated
@ConfigurationProperties("zephyr.exporter")
public class ZephyrExporterProperties
{
private String jiraInstanceKey;

@NotBlank(message = "Property 'zephyr.exporter.source-directory' must not be blank")
@NotNull(message = "Property 'zephyr.exporter.source-directory' must be set")
private Path sourceDirectory;

private boolean updateExecutionStatusesOnly;
Expand Down

0 comments on commit 6502e02

Please sign in to comment.