com.chutneytesting.scenario.api.raw.dto.GwtTestCaseDto Maven / Gradle / Ivy
The newest version!
/*
* SPDX-FileCopyrightText: 2017-2024 Enedis
*
* SPDX-License-Identifier: Apache-2.0
*
*/
package com.chutneytesting.scenario.api.raw.dto;
import static java.time.Instant.now;
import com.chutneytesting.execution.api.ExecutionSummaryDto;
import com.chutneytesting.server.core.domain.security.User;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.time.Instant;
import java.util.List;
import java.util.Optional;
import org.immutables.value.Value;
@Value.Immutable
@JsonSerialize(as = ImmutableGwtTestCaseDto.class)
@JsonDeserialize(as = ImmutableGwtTestCaseDto.class)
@JsonIgnoreProperties(ignoreUnknown = true)
@Value.Style(jdkOnly = true)
public interface GwtTestCaseDto {
Optional id();
String title();
Optional description();
Optional repositorySource();
List tags();
List executions();
Optional creationDate();
GwtScenarioDto scenario();
Optional defaultDataset();
@Value.Default()
default String author() {
return User.ANONYMOUS.id;
}
@Value.Default()
default Instant updateDate() {
return now();
}
@Value.Default()
default Integer version() {
return 1;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy