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

org.mockserver.uuid.UUIDService Maven / Gradle / Ivy

There is a newer version: 5.15.0
Show newest version
package org.mockserver.uuid;

import java.util.UUID;

public class UUIDService {

    public static final String FIXED_UUID_FOR_TESTS = UUID.randomUUID().toString();
    public static boolean fixedUUID = false;

    public static String getUUID() {
        if (!fixedUUID) {
            return UUID.randomUUID().toString();
        } else {
            return FIXED_UUID_FOR_TESTS;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy