Fix DS Type update to do not remove mandatory/optional module types (#2598)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -17,7 +17,6 @@ import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import jakarta.validation.constraints.Size;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Getter;
|
||||
import lombok.ToString;
|
||||
@@ -125,9 +124,7 @@ public interface DistributionSetTypeManagement<T extends DistributionSetType>
|
||||
@Size(max = Type.COLOUR_MAX_SIZE)
|
||||
private String colour;
|
||||
|
||||
@Builder.Default
|
||||
private Set<? extends SoftwareModuleType> mandatoryModuleTypes = Set.of();
|
||||
@Builder.Default
|
||||
private Set<? extends SoftwareModuleType> optionalModuleTypes = Set.of();
|
||||
private Set<? extends SoftwareModuleType> mandatoryModuleTypes;
|
||||
private Set<? extends SoftwareModuleType> optionalModuleTypes;
|
||||
}
|
||||
}
|
||||
@@ -50,7 +50,7 @@ import org.junit.jupiter.api.Test;
|
||||
class DistributionSetTypeManagementTest extends AbstractJpaIntegrationTest {
|
||||
|
||||
/**
|
||||
* Verifies that management get access react as specfied on calls for non existing entities by means
|
||||
* Verifies that management get access react as specified on calls for non existing entities by means
|
||||
* of Optional not present.
|
||||
*/
|
||||
@Test
|
||||
@@ -62,7 +62,7 @@ class DistributionSetTypeManagementTest extends AbstractJpaIntegrationTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Verifies that management queries react as specfied on calls for non existing entities
|
||||
* Verifies that management queries react as specified on calls for non existing entities
|
||||
* by means of throwing EntityNotFoundException.
|
||||
*/
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user