From 099604d038d04d3defc021b618fb2e0f47feb3fe Mon Sep 17 00:00:00 2001 From: Jakub Stejskal Date: Mon, 22 Jul 2024 14:26:52 +0200 Subject: [PATCH] Change duration with distance for stargate data Signed-off-by: Jakub Stejskal --- .../io/skodjob/datagenerator/handlers/StarGateHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/skodjob/datagenerator/handlers/StarGateHandler.java b/src/main/java/io/skodjob/datagenerator/handlers/StarGateHandler.java index 24d0be8..98e72e5 100644 --- a/src/main/java/io/skodjob/datagenerator/handlers/StarGateHandler.java +++ b/src/main/java/io/skodjob/datagenerator/handlers/StarGateHandler.java @@ -37,10 +37,10 @@ public static String generateData() { starGate.setSourcePlanet(FAKER.stargate().planets()); starGate.setTargetPlanet(FAKER.stargate().planets()); starGate.setQuote(FAKER.stargate().quotes()); - starGate.setDistance(FAKER.number().numberBetween(1, 50)); - starGate.setDistanceUnit("light_year"); - starGate.setDuration(FAKER.number().numberBetween(20000, 999999)); + starGate.setDuration(FAKER.number().numberBetween(1, 50)); starGate.setDurationUnit("seconds"); + starGate.setDistance(FAKER.number().numberBetween(20000, 999999)); + starGate.setDistanceUnit("light_year"); return starGate.toString(); }