From 0061869c06be065d5c34d3d0e2b67282da1666d1 Mon Sep 17 00:00:00 2001 From: Connor <brockcc1@cardiff.ac.uk> Date: Thu, 14 Dec 2023 14:00:35 +0000 Subject: [PATCH] Presentation --- .../Team5/SmartTownsOld/DataSourceConfig.java | 19 ------------------- ...Config.java => DataSourceConfigahhhh.java} | 0 2 files changed, 19 deletions(-) delete mode 100644 src/test/java/Team5/SmartTownsOld/DataSourceConfig.java rename src/test/java/Team5/SmartTownsOld/{DatasourceConfig.java => DataSourceConfigahhhh.java} (100%) diff --git a/src/test/java/Team5/SmartTownsOld/DataSourceConfig.java b/src/test/java/Team5/SmartTownsOld/DataSourceConfig.java deleted file mode 100644 index f069c250..00000000 --- a/src/test/java/Team5/SmartTownsOld/DataSourceConfig.java +++ /dev/null @@ -1,19 +0,0 @@ -package Team5.SmartTownsOld; - -import javax.sql.DataSource; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.jdbc.datasource.DriverManagerDataSource; - -@Configuration -public class DataSourceConfig { - - @Bean - public DataSource dataSource(){ - DriverManagerDataSource dataSource = new DriverManagerDataSource(); - dataSource.setUrl("jdbc:mariadb://localhost:3306/test_towns"); - dataSource.setUsername("root"); - dataSource.setPassword("comsc"); - return dataSource; - } -} \ No newline at end of file diff --git a/src/test/java/Team5/SmartTownsOld/DatasourceConfig.java b/src/test/java/Team5/SmartTownsOld/DataSourceConfigahhhh.java similarity index 100% rename from src/test/java/Team5/SmartTownsOld/DatasourceConfig.java rename to src/test/java/Team5/SmartTownsOld/DataSourceConfigahhhh.java -- GitLab