From 82b5470079ddeb493f6bb77e92960d39e9c9d05d Mon Sep 17 00:00:00 2001 From: Cristian Jonhson Alvarez Date: Tue, 9 Jul 2024 23:14:25 -0400 Subject: [PATCH 1/2] fix test code --- core/pom.xml | 38 +++++++++++++++++++ .../core/TrackerCoreConfigTest.java | 2 +- .../taylor/timetracker/core/TrackerTest.java | 2 +- 3 files changed, 40 insertions(+), 2 deletions(-) diff --git a/core/pom.xml b/core/pom.xml index 9542c979c..db4c0d4f5 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -18,6 +18,14 @@ spring-context ${spring.version} + + + org.springframework + spring-web + ${spring.version} + test + + @@ -33,6 +41,36 @@ ${spring.version} test + + + + + org.springframework + spring-tx + ${spring.version} + test + + + + javax.servlet + javax.servlet-api + 4.0.1 + test + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M5 + + --add-opens java.base/java.lang=ALL-UNNAMED + + + + diff --git a/core/src/test/java/training/taylor/timetracker/core/TrackerCoreConfigTest.java b/core/src/test/java/training/taylor/timetracker/core/TrackerCoreConfigTest.java index b4652777b..c4ba88e8c 100644 --- a/core/src/test/java/training/taylor/timetracker/core/TrackerCoreConfigTest.java +++ b/core/src/test/java/training/taylor/timetracker/core/TrackerCoreConfigTest.java @@ -15,7 +15,7 @@ * Created by Jason on 6/20/2015. */ @RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration(classes = TrackerCoreConfig.class) +@ContextConfiguration(classes = {TrackerCoreConfig.class}) public class TrackerCoreConfigTest { @Autowired diff --git a/core/src/test/java/training/taylor/timetracker/core/TrackerTest.java b/core/src/test/java/training/taylor/timetracker/core/TrackerTest.java index b0ecec0a8..d4203e2f5 100644 --- a/core/src/test/java/training/taylor/timetracker/core/TrackerTest.java +++ b/core/src/test/java/training/taylor/timetracker/core/TrackerTest.java @@ -13,7 +13,7 @@ * Created by Jason on 6/19/2015. */ @RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration(classes = TrackerCoreConfig.class) +@ContextConfiguration(classes = {TrackerCoreConfig.class}) public class TrackerTest { @Autowired private Tracker tracker; From a28b19783126a41420103fdecfe9e4261ccd55e5 Mon Sep 17 00:00:00 2001 From: Cristian Jonhson Alvarez Date: Mon, 28 Oct 2024 17:39:26 -0300 Subject: [PATCH 2/2] chore: actualizacion del gitignore para evitar subir files innecesarios --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4eb0cb06f..3c0c7e333 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,7 @@ release.properties dependency-reduced-pom.xml buildNumber.properties .idea -*.iml \ No newline at end of file +*.iml +*.project +*.prefs +.classpath \ No newline at end of file