org.mockserver.uuid.UUIDService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockserver-core Show documentation
Show all versions of mockserver-core Show documentation
Functionality used by all MockServer modules for matching and expectations
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