From 8038cc470190e5ef70b07b6637e1a0f22a7707ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20G=C3=A4chter?= Date: Wed, 14 Aug 2024 08:48:34 +0200 Subject: [PATCH] #958: move generation classes to test code --- .../main/resources/db/h2-db/data-test-h2/V100_0_0__TestData.sql | 2 -- .../java/ch/puzzle/okr/util/quarter/generate/QuarterData.java | 0 .../java/ch/puzzle/okr/util/quarter/generate/QuarterLabel.java | 0 .../java/ch/puzzle/okr/util/quarter/generate/Quarters.java | 0 .../ch/puzzle/okr/util/quarter/generate/h2/QuarterFunction.java | 0 frontend/.gitignore | 1 + frontend/src/app/version.ts | 1 - 7 files changed, 1 insertion(+), 3 deletions(-) rename backend/src/{main => test}/java/ch/puzzle/okr/util/quarter/generate/QuarterData.java (100%) rename backend/src/{main => test}/java/ch/puzzle/okr/util/quarter/generate/QuarterLabel.java (100%) rename backend/src/{main => test}/java/ch/puzzle/okr/util/quarter/generate/Quarters.java (100%) rename backend/src/{main => test}/java/ch/puzzle/okr/util/quarter/generate/h2/QuarterFunction.java (100%) delete mode 100644 frontend/src/app/version.ts diff --git a/backend/src/main/resources/db/h2-db/data-test-h2/V100_0_0__TestData.sql b/backend/src/main/resources/db/h2-db/data-test-h2/V100_0_0__TestData.sql index cf98b5ef56..f9f2c1dea7 100644 --- a/backend/src/main/resources/db/h2-db/data-test-h2/V100_0_0__TestData.sql +++ b/backend/src/main/resources/db/h2-db/data-test-h2/V100_0_0__TestData.sql @@ -47,8 +47,6 @@ values (2, CURRENT_QUARTER_LABEL(), CURRENT_QUARTER_START_DATE(), CURRENT_QUARTE (99, 'GJ ForTests', '2000-07-01', '2000-09-30'), (999, 'Backlog', null, null); -select * from quarter; - insert into team (id, version, name) values (4, 1, '/BBT'), (8, 1, 'we are cube.³'), diff --git a/backend/src/main/java/ch/puzzle/okr/util/quarter/generate/QuarterData.java b/backend/src/test/java/ch/puzzle/okr/util/quarter/generate/QuarterData.java similarity index 100% rename from backend/src/main/java/ch/puzzle/okr/util/quarter/generate/QuarterData.java rename to backend/src/test/java/ch/puzzle/okr/util/quarter/generate/QuarterData.java diff --git a/backend/src/main/java/ch/puzzle/okr/util/quarter/generate/QuarterLabel.java b/backend/src/test/java/ch/puzzle/okr/util/quarter/generate/QuarterLabel.java similarity index 100% rename from backend/src/main/java/ch/puzzle/okr/util/quarter/generate/QuarterLabel.java rename to backend/src/test/java/ch/puzzle/okr/util/quarter/generate/QuarterLabel.java diff --git a/backend/src/main/java/ch/puzzle/okr/util/quarter/generate/Quarters.java b/backend/src/test/java/ch/puzzle/okr/util/quarter/generate/Quarters.java similarity index 100% rename from backend/src/main/java/ch/puzzle/okr/util/quarter/generate/Quarters.java rename to backend/src/test/java/ch/puzzle/okr/util/quarter/generate/Quarters.java diff --git a/backend/src/main/java/ch/puzzle/okr/util/quarter/generate/h2/QuarterFunction.java b/backend/src/test/java/ch/puzzle/okr/util/quarter/generate/h2/QuarterFunction.java similarity index 100% rename from backend/src/main/java/ch/puzzle/okr/util/quarter/generate/h2/QuarterFunction.java rename to backend/src/test/java/ch/puzzle/okr/util/quarter/generate/h2/QuarterFunction.java diff --git a/frontend/.gitignore b/frontend/.gitignore index 0711527ef9..aa16347996 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -36,6 +36,7 @@ yarn-error.log /libpeerconnection.log testem.log /typings +/src/app/version.ts # System files .DS_Store diff --git a/frontend/src/app/version.ts b/frontend/src/app/version.ts deleted file mode 100644 index 846e237b3e..0000000000 --- a/frontend/src/app/version.ts +++ /dev/null @@ -1 +0,0 @@ -export const version = 'v';