All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.unit.nva.model.testing.RandomUtils Maven / Gradle / Ivy

There is a newer version: 0.23.2
Show newest version
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