Skip to content

Instantly share code, notes, and snippets.

@mherman22
Last active August 8, 2023 03:18
Show Gist options
  • Save mherman22/271642b925e576c1692b32e571552321 to your computer and use it in GitHub Desktop.
Save mherman22/271642b925e576c1692b32e571552321 to your computer and use it in GitHub Desktop.
@Test
public void generateUUIDsForTests() {
int count = 10;
for (int i = 0; i < count; i++) {
UUID uuid = UUID.randomUUID();
String uuidString = uuid.toString();
System.out.println("Generated UUID: " + uuidString);
}
}
@mherman22
Copy link
Author

for creating a bunch of uuids, the snippet below would be helpful

	@Test
	public void generateUUIDsForTests() {
		int count = 10;
		for (int i = 0; i < count; i++) {
			UUID uuid = UUID.randomUUID();
			String uuidString = uuid.toString();
			System.out.println("Generated UUID: " + uuidString);
		}
	}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment