From 58b03820805fd9c14d574795b412f11aa87a315f Mon Sep 17 00:00:00 2001 From: Jakub Stejskal Date: Mon, 22 Jul 2024 14:37:59 +0200 Subject: [PATCH] Change duration with distance for stargate data (#26) ## Description In previous PR I kinda mess up distance and duration in stargate template. This PR fixes it. ## Type of Change * Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code 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(); }