From f5b5b9823fd2618b6c39866123d51b1374ed74c9 Mon Sep 17 00:00:00 2001 From: Magnus Albeck Klitmose Date: Mon, 27 Mar 2023 11:24:52 +0200 Subject: [PATCH 1/2] Sonarqube added --- MiniTwit/pom.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MiniTwit/pom.xml b/MiniTwit/pom.xml index 61a80fb..5402218 100644 --- a/MiniTwit/pom.xml +++ b/MiniTwit/pom.xml @@ -10,12 +10,14 @@ dk.itu MiniTwit - 0.0.5 + 1.0.3 war MiniTwit MiniTwit 17 + academic-weapons + https://sonarcloud.io From 4bd333cd059a78742a635f0dae676f551624cbcf Mon Sep 17 00:00:00 2001 From: Magnus Albeck Klitmose Date: Tue, 28 Mar 2023 13:40:08 +0200 Subject: [PATCH 2/2] Added compiler target version --- MiniTwit/Dockerfile | 4 +- MiniTwit/pom.xml | 5 +- .../minitwit/MiniTwitApplicationTests.java | 50 +++++++++---------- 3 files changed, 29 insertions(+), 30 deletions(-) diff --git a/MiniTwit/Dockerfile b/MiniTwit/Dockerfile index 6804bfa..8e34387 100644 --- a/MiniTwit/Dockerfile +++ b/MiniTwit/Dockerfile @@ -8,10 +8,10 @@ FROM openjdk:17-oracle -COPY --from=maven-builder app/target/MiniTwit-0.0.5.war /app-service/MiniTwit-0.0.5.war +COPY --from=maven-builder app/target/MiniTwit-1.0.3.war /app-service/MiniTwit-1.0.3.war COPY minitwit.db /app-service/minitwit.db WORKDIR /app-service EXPOSE 8080 -ENTRYPOINT ["java","-jar","MiniTwit-0.0.5.war"] \ No newline at end of file +ENTRYPOINT ["java","-jar","MiniTwit-1.0.3.war"] \ No newline at end of file diff --git a/MiniTwit/pom.xml b/MiniTwit/pom.xml index 5402218..d7adfdb 100644 --- a/MiniTwit/pom.xml +++ b/MiniTwit/pom.xml @@ -16,8 +16,7 @@ MiniTwit 17 - academic-weapons - https://sonarcloud.io + 11 @@ -98,4 +97,4 @@ - + \ No newline at end of file diff --git a/MiniTwit/src/test/java/dk/itu/minitwit/MiniTwitApplicationTests.java b/MiniTwit/src/test/java/dk/itu/minitwit/MiniTwitApplicationTests.java index 08ef8f5..3f03e10 100644 --- a/MiniTwit/src/test/java/dk/itu/minitwit/MiniTwitApplicationTests.java +++ b/MiniTwit/src/test/java/dk/itu/minitwit/MiniTwitApplicationTests.java @@ -1,29 +1,29 @@ -package dk.itu.minitwit; - -import dk.itu.minitwit.database.SQLite; -import dk.itu.minitwit.domain.SimData; -import org.junit.jupiter.api.Test; -import org.springframework.boot.test.context.SpringBootTest; - -import java.sql.SQLException; - -@SpringBootTest -class MiniTwitApplicationTests { +//package dk.itu.minitwit; // -// @Test -// void contextLoads() { +//import dk.itu.minitwit.database.SQLite; +//import dk.itu.minitwit.domain.SimData; +//import org.junit.jupiter.api.Test; +//import org.springframework.boot.test.context.SpringBootTest; // -// } +//import java.sql.SQLException; // -// @Test -// void simInsertWorksAsIntended () throws SQLException, ClassNotFoundException { -// SQLite sql = new SQLite(); -// SimData data = new SimData(); -// data.setContent("asd dsa "); +//@SpringBootTest +//class MiniTwitApplicationTests { +//// +//// @Test +//// void contextLoads() { +//// +//// } +//// +//// @Test +//// void simInsertWorksAsIntended () throws SQLException, ClassNotFoundException { +//// SQLite sql = new SQLite(); +//// SimData data = new SimData(); +//// data.setContent("asd dsa "); +//// +//// sql.insertMessage(1, data); +//// } // -// sql.insertMessage(1, data); -// } - - - -} +// +// +//}