no.unit.nva.model.testing.RandomUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nva-datamodel-testutils Show documentation
Show all versions of nva-datamodel-testutils Show documentation
The java version of the NVA datamodel
package no.unit.nva.model.testing;
import static no.unit.nva.testutils.RandomDataGenerator.randomString;
import java.util.Map;
import no.unit.nva.model.PublicationDate;
import nva.commons.core.JacocoGenerated;
@JacocoGenerated
public class RandomUtils {
public static Map randomLabels() {
return Map.of(RandomLanguageUtil.randomBcp47CompatibleLanguage(), randomString());
}
public static String randomLabel() {
return randomString();
}
public static PublicationDate randomPublicationDate() {
return new PublicationDate.Builder()
.withDay(randomString())
.withMonth(randomString())
.withYear(randomString())
.build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy