From 62217138e6710ccf7a5e2962b16a2a737db4a33d Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Fri, 11 Feb 2022 01:04:52 +0100 Subject: [PATCH 01/56] Added Database Connection + Test --- projjpn/GamesDB.accdb | Bin 0 -> 1015808 bytes projjpn/GamesDB.laccdb | 0 .../java/de/hs_fulda/ciip/projjpn/Games.java | 21 ++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 11 +++++++++ 4 files changed, 32 insertions(+) create mode 100644 projjpn/GamesDB.accdb create mode 100644 projjpn/GamesDB.laccdb create mode 100644 projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java create mode 100644 projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java diff --git a/projjpn/GamesDB.accdb b/projjpn/GamesDB.accdb new file mode 100644 index 0000000000000000000000000000000000000000..ee44ae17237edaa7eb3c2fad90e8305c9441c4c0 GIT binary patch literal 1015808 zcmeF42VfM%8pmfZm!4cg5s`Xy1cFHjp<_BEq(Kt8K$5$JBb5{&peBMSSWxW3L&b)Q z4Fw*cA}WXiioGNDLb0Jz)a3oY+1tCze!nRdyIvD!w-d!tlKm6*Y zyA%Gn=GoNESqBD~_xD~I8X@!I5MZWgQ-Zg0xTf`n#*7OV5T{Y>EwwLz0 z@3Twq^yzrVUzZ==^yBQK3-hMldgP78T^HuR+_6X8TR-eJAFT7NfC(@GCh!jssDVt~Pj!cD>;9^vZKl_s@_5`I zo${$a>C;9p!~}eE??xxsv^D|t41ENe34hT{b`7BJ0RmnX?6eiBhkE7!lI1HrVCf6V z&23(!gO8L`-@%7M=w-a*&_agr6Fx#Zcse;Whl8F%c-us&A=*HOA36BJP(SioMTSsS zvByEN`csHN2&*4Ls1Csp=F%YuNp$I8fO^gjQY*=>9+Fzcmm>GFB`_QzX|t-UW`tc` zy{2veFkT&UXEkQg!HYt80P0W^BmmyR-!jf*qkVDd2i7|+a%*7%P zA(OEeLyOi<_8DS2T*~0nM`VgB#9$T+Pzul>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b8^BkL{l7a>?Eh8M{vVz!E+jw#BtQZrKmsH{ z0wj<*0owY@f$g)DQt?1cNJm?LsaJ!rbpf1dPf}_B=fe0dQn{t3V>>ye7N!WJ z?TazezFtp`>BAh1$(V3gE}NK0t(B3SCT)$NXf6hhO>kS3h1N=poNV5m&IJaTFD4-rB^xbwvmudhV;~zB`L$$dQhs;Ii*g0 zf6tK>jVB8aBr}7U+j2l=(n=v?16DuewPPQK#Kj5y z=I2%yEZY7+?Vdx8FD|+M=4&&PSPm&c$PwM@5|Z5G?9)jap75I_<~9LSh8fn9GOZuo zUEO@=nXaMc{gYX#bu@aq2cP#(rVM9K>iPQmxetxrvA5`{g>OE5^2F-x{gWx9Uy?HS zA9(iokKcWv>e*XIy>>YFh7Z!o?3s$2RD)XT>Ors2pWa!r&iv~1{*%v_?3>*1>&N0h z+n1Tl-ptS#sqQfn>7@32R(dl@W29zcmZqoF-ptdO*msX2$V}IC;}VbuSvjg|Sy5Ft z`+xtB_Wx-AkM{p)|Bv?nX#bD)|M1=6{+#dqBBzl5%?c@DfRxd~_ux_4ctPk}~CTw~w-hCDJjYJDhu)C%GjytUA1xN))5N!Uo{odri3?|F4@$j&|Fr*yQNfpF zw5>57<}OixM^m4Q?WB~Fc+WB~VlCT3Og)TGesO2PEy+isHCv)p6xXTYQis4@ia(-5 zkdN*7ln^A#*hceVFqmgFmq+CCYwoTsIH)zBj&15F?sR2(6NY)H0x)5q{XZ2zZYaau zrE Date: Fri, 11 Feb 2022 03:12:47 +0100 Subject: [PATCH 02/56] Added Console Listing + Test --- projjpn/GamesDB.laccdb | Bin 0 -> 64 bytes .../java/de/hs_fulda/ciip/projjpn/Games.java | 53 ++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 7 +++ 3 files changed, 60 insertions(+) diff --git a/projjpn/GamesDB.laccdb b/projjpn/GamesDB.laccdb index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..5a03e0388674df9c401c0cef4dc38d6267f63454 100644 GIT binary patch literal 64 icmZ>94fYQ45771WG4%0wG-gmh1CA-VnRytZ2t@#)Zwp2M literal 0 HcmV?d00001 diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 09c31e9..fc1b27f 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -2,7 +2,9 @@ package de.hs_fulda.ciip.projjpn; import java.sql.Connection; import java.sql.DriverManager; +import java.sql.ResultSet; import java.sql.SQLException; +import java.sql.Statement; public class Games { private String databaseURL = "jdbc:ucanaccess://GamesDB.accdb"; @@ -18,4 +20,55 @@ public class Games { return false; } } + + public String checkForConsoles() { + String result = ""; + String query = "SELECT Game_Console FROM Games"; + boolean ninSwitch = false; + boolean xbox = false; + boolean multiplat = false; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameConsole = resultSet.getString("Game_Console"); + + if (ninSwitch && gameConsole.equals("Nintendo Switch")) { + continue; + } else if (xbox && gameConsole.equals("Xbox")) { + continue; + } else if (multiplat && gameConsole.equals("Multiplatform")) { + continue; + } + + switch (gameConsole) { + case "Nintendo Switch": + ninSwitch = true; + break; + case "Xbox": + xbox = true; + break; + case "Multiplatform": + multiplat = true; + break; + } + + + + result += gameConsole + ", "; + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + // The substring removes the last New line in the String. + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 3ffaca8..e57ae11 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -8,4 +8,11 @@ public class GamesTest extends TestCase { boolean actual = testObject.checkForConnection(); assertEquals(expected, actual); } + + public void test_checkForConsoles() { + Games testObject = new Games(); + String expected = "PlayStation 4, Multiplatform, Nintendo Switch, Nintendo DS, PlayStation 3, Xbox, PlayStation Portable, Nintendo 3DS, Xbox 360, PlayStation Vita"; + String actual = testObject.checkForConsoles(); + assertEquals(expected, actual); + } } From 443c200c098032ed33e5ef81a649491d7310dfb8 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 01:48:19 +0100 Subject: [PATCH 03/56] Added two Publisher checkers + Tests --- projjpn/GamesDB.accdb | Bin 1015808 -> 1015808 bytes projjpn/GamesDB.laccdb | Bin 64 -> 0 bytes .../java/de/hs_fulda/ciip/projjpn/Games.java | 70 +++++++++++++++++- .../de/hs_fulda/ciip/projjpn/GamesTest.java | 22 +++++- 4 files changed, 86 insertions(+), 6 deletions(-) diff --git a/projjpn/GamesDB.accdb b/projjpn/GamesDB.accdb index ee44ae17237edaa7eb3c2fad90e8305c9441c4c0..f0c11c07f60b3ee4e594324152aca738ce380672 100644 GIT binary patch delta 134 zcmZo@uxn_r+rY%f^n!V_0N)43$qIZtO#<5l7*FuAX1zLEpECWd9HS(oUHfx6Mj&Pa zVrC#_+5TLPReB+hC$~?SqYncR*fUHQIKY}UUEu($(DteWtP1SytB$h*F&hwr*c?F2 V3B+7L%nigmK+L;+)p5SC9ROODGZz2= delta 132 zcmZo@uxn_r+rY%fbc1=b0N)43$qIZtO#<5l7*FuA&Z{ipO`LvKj!}})to^whBM>tI zF*6XeY=17tD!q^=lG`WD(T4#D%o(N&9AM4a-gSUgfqmizf%a9$S%H`hh}nUd1Bf|+ Um94fYQ45771WG4%0wG-gmh1CA-VnRytZ2t@#)Zwp2M diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index fc1b27f..92078aa 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -9,7 +9,7 @@ import java.sql.Statement; public class Games { private String databaseURL = "jdbc:ucanaccess://GamesDB.accdb"; - public boolean checkForConnection() { + public boolean checkConnection() { try { Connection connection = DriverManager.getConnection(databaseURL); @@ -21,7 +21,7 @@ public class Games { } } - public String checkForConsoles() { + public String checkConsoles() { String result = ""; String query = "SELECT Game_Console FROM Games"; boolean ninSwitch = false; @@ -71,4 +71,70 @@ public class Games { // The substring removes the last New line in the String. return result.substring(0, result.length() - 2); } + + public String checkAllSamePublishers() { + String result = ""; + String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gamePublisherEu = resultSet.getString("Game_Publisher_EU"); + String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); + String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); + + + + if (gamePublisherEu.equals(gamePublisherJp) && gamePublisherJp.equals(gamePublisherNa) && gamePublisherEu.equals(gamePublisherNa)) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + // The substring removes the last New line in the String. + return result.substring(0, result.length() - 2); + } + + public String checkAllDifferentPublishers() { + String result = ""; + String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gamePublisherEu = resultSet.getString("Game_Publisher_EU"); + String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); + String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); + + + + if (!gamePublisherEu.equals(gamePublisherJp) && !gamePublisherJp.equals(gamePublisherNa) && !gamePublisherEu.equals(gamePublisherNa)) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + // The substring removes the last New line in the String. + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index e57ae11..c6755a8 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -2,17 +2,31 @@ package de.hs_fulda.ciip.projjpn; import junit.framework.TestCase; public class GamesTest extends TestCase { - public void test_checkForConnection() { + public void test_checkConnection() { Games testObject = new Games(); boolean expected = true; - boolean actual = testObject.checkForConnection(); + boolean actual = testObject.checkConnection(); assertEquals(expected, actual); } - public void test_checkForConsoles() { + public void test_checkConsoles() { Games testObject = new Games(); String expected = "PlayStation 4, Multiplatform, Nintendo Switch, Nintendo DS, PlayStation 3, Xbox, PlayStation Portable, Nintendo 3DS, Xbox 360, PlayStation Vita"; - String actual = testObject.checkForConsoles(); + String actual = testObject.checkConsoles(); + assertEquals(expected, actual); + } + + public void test_checkAllSamePublishers() { + Games testObject = new Games(); + String expected = "Ratchet & Clank, Astral Chain, Fire Emblem: Three Houses, Rhythm Paradise, Super Smash Bros. Ultimate, Yakuza: Dead Souls, Jet Set Radio Future, Tomodachi Life, Beautiful Katamari, Crash Bandicoot N. Sane Trilogy"; + String actual = testObject.checkAllSamePublishers(); + assertEquals(expected, actual); + } + + public void test_checkAllDifferentPublishers() { + Games testObject = new Games(); + String expected = "Atelier Totori Plus"; + String actual = testObject.checkAllDifferentPublishers(); assertEquals(expected, actual); } } From 9c913e14083e41b72a918b7b97a13d9646e60843 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 02:00:23 +0100 Subject: [PATCH 04/56] Added Publisher + Dev checker + Test --- projjpn/GamesDB.laccdb | Bin 0 -> 64 bytes .../java/de/hs_fulda/ciip/projjpn/Games.java | 34 ++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 7 ++++ 3 files changed, 41 insertions(+) diff --git a/projjpn/GamesDB.laccdb b/projjpn/GamesDB.laccdb index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..5a03e0388674df9c401c0cef4dc38d6267f63454 100644 GIT binary patch literal 64 icmZ>94fYQ45771WG4%0wG-gmh1CA-VnRytZ2t@#)Zwp2M literal 0 HcmV?d00001 diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 92078aa..584cc88 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -137,4 +137,38 @@ public class Games { // The substring removes the last New line in the String. return result.substring(0, result.length() - 2); } + + public String checkAllDifferentPublishersDeveloper() { + String result = ""; + String query = "SELECT Game_Name, Game_Developer, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameDeveloper = resultSet.getString("Game_Developer"); + String gamePublisherEu = resultSet.getString("Game_Publisher_EU"); + String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); + String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); + + + + if (gamePublisherEu.equals(gamePublisherJp) && gamePublisherJp.equals(gamePublisherNa) && gamePublisherEu.equals(gamePublisherNa) && gameDeveloper.equals(gamePublisherEu) && gameDeveloper.equals(gamePublisherJp) && gameDeveloper.equals(gamePublisherNa) ) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + // The substring removes the last New line in the String. + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index c6755a8..8f9589c 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -29,4 +29,11 @@ public class GamesTest extends TestCase { String actual = testObject.checkAllDifferentPublishers(); assertEquals(expected, actual); } + + public void test_checkAllSamePublishersDeveloper() { + Games testObject = new Games(); + String expected = "Beautiful Katamari"; + String actual = testObject.checkAllDifferentPublishersDeveloper(); + assertEquals(expected, actual); + } } From 49a3d044fa23a3a4f40b4c523d1b1dce82297da9 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 02:31:33 +0100 Subject: [PATCH 05/56] Added Release Date Checkers + Tests --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 80 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 ++++ 2 files changed, 94 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 584cc88..0b0de1f 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -171,4 +171,84 @@ public class Games { // The substring removes the last New line in the String. return result.substring(0, result.length() - 2); } + + public String checkAllSameReleaseDates() { + String result = ""; + String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameReleaseEu = resultSet.getString("Game_Release_EU"); + String gameReleaseJp = resultSet.getString("Game_Release_JP"); + String gameReleaseNa = resultSet.getString("Game_Release_NA"); + String gameReleaseAu = resultSet.getString("Game_Release_AU"); + + + if (gameReleaseAu == null) { + if (gameReleaseEu.equals(gameReleaseJp) && gameReleaseJp.equals(gameReleaseNa) && gameReleaseEu.equals(gameReleaseNa)) { + result += gameName + ", "; + } + } else { + if (gameReleaseEu.equals(gameReleaseJp) && gameReleaseJp.equals(gameReleaseNa) && gameReleaseEu.equals(gameReleaseNa) && gameReleaseAu.equals(gameReleaseEu) && gameReleaseAu.equals(gameReleaseJp) && gameReleaseAu.equals(gameReleaseNa) ) { + result += gameName + ", "; + } + } + + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + // The substring removes the last New line in the String. + return result.substring(0, result.length() - 2); + } + + public String checkAllDifferentReleaseDates() { + String result = ""; + String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameReleaseEu = resultSet.getString("Game_Release_EU"); + String gameReleaseJp = resultSet.getString("Game_Release_JP"); + String gameReleaseNa = resultSet.getString("Game_Release_NA"); + String gameReleaseAu = resultSet.getString("Game_Release_AU"); + + + if (gameReleaseAu == null) { + if (!gameReleaseEu.equals(gameReleaseJp) && !gameReleaseJp.equals(gameReleaseNa) && !gameReleaseEu.equals(gameReleaseNa)) { + result += gameName + ", "; + } + } else { + if (!gameReleaseEu.equals(gameReleaseJp) && !gameReleaseJp.equals(gameReleaseNa) && !gameReleaseEu.equals(gameReleaseNa) && !gameReleaseAu.equals(gameReleaseEu) && !gameReleaseAu.equals(gameReleaseJp) && !gameReleaseAu.equals(gameReleaseNa) ) { + result += gameName + ", "; + } + } + + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + // The substring removes the last New line in the String. + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 8f9589c..895ef66 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -36,4 +36,18 @@ public class GamesTest extends TestCase { String actual = testObject.checkAllDifferentPublishersDeveloper(); assertEquals(expected, actual); } + + public void test_checkAllSameReleaseDates() { + Games testObject = new Games(); + String expected = "Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Super Smash Bros. Ultimate"; + String actual = testObject.checkAllSameReleaseDates(); + assertEquals(expected, actual); + } + + public void test_checkAllDifferentReleaseDates() { + Games testObject = new Games(); + String expected = "Rhythm Paradise, Yakuza: Dead Souls, Breakdown, Persona 3 Portable, Beautiful Katamari, Atelier Totori Plus"; + String actual = testObject.checkAllDifferentReleaseDates(); + assertEquals(expected, actual); + } } From 576c24abcdecf3850b27d6fccad49c7ec308c492 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 02:34:14 +0100 Subject: [PATCH 06/56] Refactored Class and Test Class --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 212 +++++++++--------- .../de/hs_fulda/ciip/projjpn/GamesTest.java | 13 +- 2 files changed, 112 insertions(+), 113 deletions(-) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 0b0de1f..165d0e7 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -8,7 +8,7 @@ import java.sql.Statement; public class Games { private String databaseURL = "jdbc:ucanaccess://GamesDB.accdb"; - + public boolean checkConnection() { try { Connection connection = DriverManager.getConnection(databaseURL); @@ -20,7 +20,7 @@ public class Games { return false; } } - + public String checkConsoles() { String result = ""; String query = "SELECT Game_Console FROM Games"; @@ -35,32 +35,30 @@ public class Games { ResultSet resultSet = statement.executeQuery(query); while (resultSet.next()) { - String gameConsole = resultSet.getString("Game_Console"); - - if (ninSwitch && gameConsole.equals("Nintendo Switch")) { - continue; - } else if (xbox && gameConsole.equals("Xbox")) { - continue; - } else if (multiplat && gameConsole.equals("Multiplatform")) { - continue; - } - - switch (gameConsole) { - case "Nintendo Switch": - ninSwitch = true; - break; - case "Xbox": - xbox = true; - break; - case "Multiplatform": - multiplat = true; - break; - } - - - - result += gameConsole + ", "; - + String gameConsole = resultSet.getString("Game_Console"); + + if (ninSwitch && gameConsole.equals("Nintendo Switch")) { + continue; + } else if (xbox && gameConsole.equals("Xbox")) { + continue; + } else if (multiplat && gameConsole.equals("Multiplatform")) { + continue; + } + + switch (gameConsole) { + case "Nintendo Switch": + ninSwitch = true; + break; + case "Xbox": + xbox = true; + break; + case "Multiplatform": + multiplat = true; + break; + } + + result += gameConsole + ", "; + } statement.close(); connection.close(); @@ -68,10 +66,10 @@ public class Games { } catch (SQLException e) { e.printStackTrace(); } - // The substring removes the last New line in the String. + return result.substring(0, result.length() - 2); } - + public String checkAllSamePublishers() { String result = ""; String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -83,17 +81,16 @@ public class Games { ResultSet resultSet = statement.executeQuery(query); while (resultSet.next()) { - String gameName = resultSet.getString("Game_Name"); - String gamePublisherEu = resultSet.getString("Game_Publisher_EU"); - String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); - String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); - - - - if (gamePublisherEu.equals(gamePublisherJp) && gamePublisherJp.equals(gamePublisherNa) && gamePublisherEu.equals(gamePublisherNa)) { - result += gameName + ", "; - } - + String gameName = resultSet.getString("Game_Name"); + String gamePublisherEu = resultSet.getString("Game_Publisher_EU"); + String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); + String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); + + if (gamePublisherEu.equals(gamePublisherJp) && gamePublisherJp.equals(gamePublisherNa) + && gamePublisherEu.equals(gamePublisherNa)) { + result += gameName + ", "; + } + } statement.close(); connection.close(); @@ -101,10 +98,10 @@ public class Games { } catch (SQLException e) { e.printStackTrace(); } - // The substring removes the last New line in the String. + return result.substring(0, result.length() - 2); } - + public String checkAllDifferentPublishers() { String result = ""; String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -116,17 +113,16 @@ public class Games { ResultSet resultSet = statement.executeQuery(query); while (resultSet.next()) { - String gameName = resultSet.getString("Game_Name"); - String gamePublisherEu = resultSet.getString("Game_Publisher_EU"); - String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); - String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); - - - - if (!gamePublisherEu.equals(gamePublisherJp) && !gamePublisherJp.equals(gamePublisherNa) && !gamePublisherEu.equals(gamePublisherNa)) { - result += gameName + ", "; - } - + String gameName = resultSet.getString("Game_Name"); + String gamePublisherEu = resultSet.getString("Game_Publisher_EU"); + String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); + String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); + + if (!gamePublisherEu.equals(gamePublisherJp) && !gamePublisherJp.equals(gamePublisherNa) + && !gamePublisherEu.equals(gamePublisherNa)) { + result += gameName + ", "; + } + } statement.close(); connection.close(); @@ -134,10 +130,10 @@ public class Games { } catch (SQLException e) { e.printStackTrace(); } - // The substring removes the last New line in the String. + return result.substring(0, result.length() - 2); } - + public String checkAllDifferentPublishersDeveloper() { String result = ""; String query = "SELECT Game_Name, Game_Developer, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -149,18 +145,18 @@ public class Games { ResultSet resultSet = statement.executeQuery(query); while (resultSet.next()) { - String gameName = resultSet.getString("Game_Name"); - String gameDeveloper = resultSet.getString("Game_Developer"); - String gamePublisherEu = resultSet.getString("Game_Publisher_EU"); - String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); - String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); - - - - if (gamePublisherEu.equals(gamePublisherJp) && gamePublisherJp.equals(gamePublisherNa) && gamePublisherEu.equals(gamePublisherNa) && gameDeveloper.equals(gamePublisherEu) && gameDeveloper.equals(gamePublisherJp) && gameDeveloper.equals(gamePublisherNa) ) { - result += gameName + ", "; - } - + String gameName = resultSet.getString("Game_Name"); + String gameDeveloper = resultSet.getString("Game_Developer"); + String gamePublisherEu = resultSet.getString("Game_Publisher_EU"); + String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); + String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); + + if (gamePublisherEu.equals(gamePublisherJp) && gamePublisherJp.equals(gamePublisherNa) + && gamePublisherEu.equals(gamePublisherNa) && gameDeveloper.equals(gamePublisherEu) + && gameDeveloper.equals(gamePublisherJp) && gameDeveloper.equals(gamePublisherNa)) { + result += gameName + ", "; + } + } statement.close(); connection.close(); @@ -168,10 +164,10 @@ public class Games { } catch (SQLException e) { e.printStackTrace(); } - // The substring removes the last New line in the String. + return result.substring(0, result.length() - 2); } - + public String checkAllSameReleaseDates() { String result = ""; String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; @@ -183,24 +179,25 @@ public class Games { ResultSet resultSet = statement.executeQuery(query); while (resultSet.next()) { - String gameName = resultSet.getString("Game_Name"); - String gameReleaseEu = resultSet.getString("Game_Release_EU"); - String gameReleaseJp = resultSet.getString("Game_Release_JP"); - String gameReleaseNa = resultSet.getString("Game_Release_NA"); - String gameReleaseAu = resultSet.getString("Game_Release_AU"); - - - if (gameReleaseAu == null) { - if (gameReleaseEu.equals(gameReleaseJp) && gameReleaseJp.equals(gameReleaseNa) && gameReleaseEu.equals(gameReleaseNa)) { - result += gameName + ", "; - } - } else { - if (gameReleaseEu.equals(gameReleaseJp) && gameReleaseJp.equals(gameReleaseNa) && gameReleaseEu.equals(gameReleaseNa) && gameReleaseAu.equals(gameReleaseEu) && gameReleaseAu.equals(gameReleaseJp) && gameReleaseAu.equals(gameReleaseNa) ) { - result += gameName + ", "; - } + String gameName = resultSet.getString("Game_Name"); + String gameReleaseEu = resultSet.getString("Game_Release_EU"); + String gameReleaseJp = resultSet.getString("Game_Release_JP"); + String gameReleaseNa = resultSet.getString("Game_Release_NA"); + String gameReleaseAu = resultSet.getString("Game_Release_AU"); + + if (gameReleaseAu == null) { + if (gameReleaseEu.equals(gameReleaseJp) && gameReleaseJp.equals(gameReleaseNa) + && gameReleaseEu.equals(gameReleaseNa)) { + result += gameName + ", "; + } + } else { + if (gameReleaseEu.equals(gameReleaseJp) && gameReleaseJp.equals(gameReleaseNa) + && gameReleaseEu.equals(gameReleaseNa) && gameReleaseAu.equals(gameReleaseEu) + && gameReleaseAu.equals(gameReleaseJp) && gameReleaseAu.equals(gameReleaseNa)) { + result += gameName + ", "; } - - + } + } statement.close(); connection.close(); @@ -208,10 +205,10 @@ public class Games { } catch (SQLException e) { e.printStackTrace(); } - // The substring removes the last New line in the String. + return result.substring(0, result.length() - 2); } - + public String checkAllDifferentReleaseDates() { String result = ""; String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; @@ -223,24 +220,25 @@ public class Games { ResultSet resultSet = statement.executeQuery(query); while (resultSet.next()) { - String gameName = resultSet.getString("Game_Name"); - String gameReleaseEu = resultSet.getString("Game_Release_EU"); - String gameReleaseJp = resultSet.getString("Game_Release_JP"); - String gameReleaseNa = resultSet.getString("Game_Release_NA"); - String gameReleaseAu = resultSet.getString("Game_Release_AU"); - - - if (gameReleaseAu == null) { - if (!gameReleaseEu.equals(gameReleaseJp) && !gameReleaseJp.equals(gameReleaseNa) && !gameReleaseEu.equals(gameReleaseNa)) { - result += gameName + ", "; - } - } else { - if (!gameReleaseEu.equals(gameReleaseJp) && !gameReleaseJp.equals(gameReleaseNa) && !gameReleaseEu.equals(gameReleaseNa) && !gameReleaseAu.equals(gameReleaseEu) && !gameReleaseAu.equals(gameReleaseJp) && !gameReleaseAu.equals(gameReleaseNa) ) { - result += gameName + ", "; - } + String gameName = resultSet.getString("Game_Name"); + String gameReleaseEu = resultSet.getString("Game_Release_EU"); + String gameReleaseJp = resultSet.getString("Game_Release_JP"); + String gameReleaseNa = resultSet.getString("Game_Release_NA"); + String gameReleaseAu = resultSet.getString("Game_Release_AU"); + + if (gameReleaseAu == null) { + if (!gameReleaseEu.equals(gameReleaseJp) && !gameReleaseJp.equals(gameReleaseNa) + && !gameReleaseEu.equals(gameReleaseNa)) { + result += gameName + ", "; } - - + } else { + if (!gameReleaseEu.equals(gameReleaseJp) && !gameReleaseJp.equals(gameReleaseNa) + && !gameReleaseEu.equals(gameReleaseNa) && !gameReleaseAu.equals(gameReleaseEu) + && !gameReleaseAu.equals(gameReleaseJp) && !gameReleaseAu.equals(gameReleaseNa)) { + result += gameName + ", "; + } + } + } statement.close(); connection.close(); @@ -248,7 +246,7 @@ public class Games { } catch (SQLException e) { e.printStackTrace(); } - // The substring removes the last New line in the String. + return result.substring(0, result.length() - 2); } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 895ef66..5acfde4 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -1,4 +1,5 @@ package de.hs_fulda.ciip.projjpn; + import junit.framework.TestCase; public class GamesTest extends TestCase { @@ -8,42 +9,42 @@ public class GamesTest extends TestCase { boolean actual = testObject.checkConnection(); assertEquals(expected, actual); } - + public void test_checkConsoles() { Games testObject = new Games(); String expected = "PlayStation 4, Multiplatform, Nintendo Switch, Nintendo DS, PlayStation 3, Xbox, PlayStation Portable, Nintendo 3DS, Xbox 360, PlayStation Vita"; String actual = testObject.checkConsoles(); assertEquals(expected, actual); } - + public void test_checkAllSamePublishers() { Games testObject = new Games(); String expected = "Ratchet & Clank, Astral Chain, Fire Emblem: Three Houses, Rhythm Paradise, Super Smash Bros. Ultimate, Yakuza: Dead Souls, Jet Set Radio Future, Tomodachi Life, Beautiful Katamari, Crash Bandicoot N. Sane Trilogy"; String actual = testObject.checkAllSamePublishers(); assertEquals(expected, actual); } - + public void test_checkAllDifferentPublishers() { Games testObject = new Games(); String expected = "Atelier Totori Plus"; String actual = testObject.checkAllDifferentPublishers(); assertEquals(expected, actual); } - + public void test_checkAllSamePublishersDeveloper() { Games testObject = new Games(); String expected = "Beautiful Katamari"; String actual = testObject.checkAllDifferentPublishersDeveloper(); assertEquals(expected, actual); } - + public void test_checkAllSameReleaseDates() { Games testObject = new Games(); String expected = "Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Super Smash Bros. Ultimate"; String actual = testObject.checkAllSameReleaseDates(); assertEquals(expected, actual); } - + public void test_checkAllDifferentReleaseDates() { Games testObject = new Games(); String expected = "Rhythm Paradise, Yakuza: Dead Souls, Breakdown, Persona 3 Portable, Beautiful Katamari, Atelier Totori Plus"; From ea4247f42ebeeef68b04ebeb6e6018e94d9cad51 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 02:51:36 +0100 Subject: [PATCH 07/56] Added Game Genre Checker + Test --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 43 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 7 +++ 2 files changed, 50 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 165d0e7..04bb05b 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -249,4 +249,47 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkGameGenres() { + String result = ""; + String query = "SELECT Game_Genre FROM Games"; + boolean actAd = false; + boolean rpg = false; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameGenre = resultSet.getString("Game_Genre"); + + if (actAd && gameGenre.equals("Action-Adventure")) { + continue; + } else if (rpg && gameGenre.equals("RPG")) { + continue; + } + + switch (gameGenre) { + case "Action-Adventure": + actAd = true; + break; + case "RPG": + rpg = true; + break; + } + + result += gameGenre + ", "; + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 5acfde4..2f9fefc 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -51,4 +51,11 @@ public class GamesTest extends TestCase { String actual = testObject.checkAllDifferentReleaseDates(); assertEquals(expected, actual); } + + public void test_checkGameGenres() { + Games testObject = new Games(); + String expected = "JRPG, Action-Adventure, Tactical role-playing, Strategy, Rhythm, Fighting, Survival Horror, Action, Adventure, RPG, Life Simulation, Puzzle, Platformer"; + String actual = testObject.checkGameGenres(); + assertEquals(expected, actual); + } } From fae09f3a25ae8b43402e953a64c96cf2e9e5ed9a Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 03:09:29 +0100 Subject: [PATCH 08/56] Added Specific Game Genre Checkers + Tests --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 58 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 +++++ 2 files changed, 72 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 04bb05b..e28f6e0 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -292,4 +292,62 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkGameGenreActionAdventure() { + String result = ""; + String query = "SELECT Game_Name, Game_Genre FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameGenre = resultSet.getString("Game_Genre"); + + if (gameGenre.equals("Action-Adventure")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkGameGenreRPG() { + String result = ""; + String query = "SELECT Game_Name, Game_Genre FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameGenre = resultSet.getString("Game_Genre"); + + if (gameGenre.equals("RPG")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 2f9fefc..2c9db85 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -58,4 +58,18 @@ public class GamesTest extends TestCase { String actual = testObject.checkGameGenres(); assertEquals(expected, actual); } + + public void test_checkGameGenreActionAdventure() { + Games testObject = new Games(); + String expected = "Ratchet & Clank, Astral Chain, Breakdown"; + String actual = testObject.checkGameGenreActionAdventure(); + assertEquals(expected, actual); + } + + public void test_checkGameGenreRPG() { + Games testObject = new Games(); + String expected = "Persona 3 Portable, Atelier Totori Plus"; + String actual = testObject.checkGameGenreRPG(); + assertEquals(expected, actual); + } } From 260d0d0049802752ab59c1e030ea4a511b437367 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 03:35:34 +0100 Subject: [PATCH 09/56] Added Specific Console Checkers + Tests --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 64 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 ++++ 2 files changed, 78 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index e28f6e0..42e5262 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -350,4 +350,68 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkConsolePlayStation() { + String result = ""; + String query = "SELECT Game_Name, Game_Console FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameConsole = resultSet.getString("Game_Console"); + + if (gameConsole.length() > 11) { + if (gameConsole.substring(0, 11).equals("PlayStation")) { + result += gameName + ", "; + } + + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkConsoleNintendo() { + String result = ""; + String query = "SELECT Game_Name, Game_Console FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameConsole = resultSet.getString("Game_Console"); + + if (gameConsole.length() > 8) { + if (gameConsole.substring(0, 8).equals("Nintendo")) { + result += gameName + ", "; + } + + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 2c9db85..75c1cbf 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -72,4 +72,18 @@ public class GamesTest extends TestCase { String actual = testObject.checkGameGenreRPG(); assertEquals(expected, actual); } + + public void test_checkConsolePlayStation() { + Games testObject = new Games(); + String expected = "Persona 5 Royal, Yakuza: Dead Souls, Persona 3 Portable, Atelier Totori Plus"; + String actual = testObject.checkConsolePlayStation(); + assertEquals(expected, actual); + } + + public void test_checkConsoleNintendo() { + Games testObject = new Games(); + String expected = "Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Rhythm Paradise, Super Smash Bros. Ultimate, Tomodachi Life"; + String actual = testObject.checkConsoleNintendo(); + assertEquals(expected, actual); + } } From 2ab773ee1631a51390f44b3ea149438f1715762a Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 03:42:21 +0100 Subject: [PATCH 10/56] Added More Specific Console Checkers + Tests --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 64 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 ++++ 2 files changed, 78 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 42e5262..f676754 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -414,4 +414,68 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkConsoleXbox() { + String result = ""; + String query = "SELECT Game_Name, Game_Console FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameConsole = resultSet.getString("Game_Console"); + + if (gameConsole.length() >= 4) { + if (gameConsole.substring(0, 4).equals("Xbox")) { + result += gameName + ", "; + } + + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkConsoleMultiplatform() { + String result = ""; + String query = "SELECT Game_Name, Game_Console FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameConsole = resultSet.getString("Game_Console"); + + if (gameConsole.length() >= 13) { + if (gameConsole.substring(0, 13).equals("Multiplatform")) { + result += gameName + ", "; + } + + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 75c1cbf..987b63e 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -86,4 +86,18 @@ public class GamesTest extends TestCase { String actual = testObject.checkConsoleNintendo(); assertEquals(expected, actual); } + + public void test_checkConsoleXbox() { + Games testObject = new Games(); + String expected = "Jet Set Radio Future, Breakdown, Beautiful Katamari"; + String actual = testObject.checkConsoleXbox(); + assertEquals(expected, actual); + } + + public void test_checkConsoleMultiplatform() { + Games testObject = new Games(); + String expected = "Ratchet & Clank, AI: The Somnium Files, Crash Bandicoot N. Sane Trilogy"; + String actual = testObject.checkConsoleMultiplatform(); + assertEquals(expected, actual); + } } From 6ca90011547e5aa764b7d7ab81a6a706cd8262b6 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 03:45:01 +0100 Subject: [PATCH 11/56] Refactored Class and Test Class --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 34 +++++++++---------- .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 ++++---- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index f676754..6b389ec 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -249,7 +249,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkGameGenres() { String result = ""; String query = "SELECT Game_Genre FROM Games"; @@ -292,7 +292,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkGameGenreActionAdventure() { String result = ""; String query = "SELECT Game_Name, Game_Genre FROM Games"; @@ -321,7 +321,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkGameGenreRPG() { String result = ""; String query = "SELECT Game_Name, Game_Genre FROM Games"; @@ -350,7 +350,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkConsolePlayStation() { String result = ""; String query = "SELECT Game_Name, Game_Console FROM Games"; @@ -364,14 +364,14 @@ public class Games { while (resultSet.next()) { String gameName = resultSet.getString("Game_Name"); String gameConsole = resultSet.getString("Game_Console"); - - if (gameConsole.length() > 11) { + + if (gameConsole.length() >= 11) { if (gameConsole.substring(0, 11).equals("PlayStation")) { result += gameName + ", "; } } - + } statement.close(); connection.close(); @@ -382,7 +382,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkConsoleNintendo() { String result = ""; String query = "SELECT Game_Name, Game_Console FROM Games"; @@ -396,14 +396,14 @@ public class Games { while (resultSet.next()) { String gameName = resultSet.getString("Game_Name"); String gameConsole = resultSet.getString("Game_Console"); - - if (gameConsole.length() > 8) { + + if (gameConsole.length() >= 8) { if (gameConsole.substring(0, 8).equals("Nintendo")) { result += gameName + ", "; } } - + } statement.close(); connection.close(); @@ -414,7 +414,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkConsoleXbox() { String result = ""; String query = "SELECT Game_Name, Game_Console FROM Games"; @@ -428,14 +428,14 @@ public class Games { while (resultSet.next()) { String gameName = resultSet.getString("Game_Name"); String gameConsole = resultSet.getString("Game_Console"); - + if (gameConsole.length() >= 4) { if (gameConsole.substring(0, 4).equals("Xbox")) { result += gameName + ", "; } } - + } statement.close(); connection.close(); @@ -446,7 +446,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkConsoleMultiplatform() { String result = ""; String query = "SELECT Game_Name, Game_Console FROM Games"; @@ -460,14 +460,14 @@ public class Games { while (resultSet.next()) { String gameName = resultSet.getString("Game_Name"); String gameConsole = resultSet.getString("Game_Console"); - + if (gameConsole.length() >= 13) { if (gameConsole.substring(0, 13).equals("Multiplatform")) { result += gameName + ", "; } } - + } statement.close(); connection.close(); diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 987b63e..9168661 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -51,49 +51,49 @@ public class GamesTest extends TestCase { String actual = testObject.checkAllDifferentReleaseDates(); assertEquals(expected, actual); } - + public void test_checkGameGenres() { Games testObject = new Games(); String expected = "JRPG, Action-Adventure, Tactical role-playing, Strategy, Rhythm, Fighting, Survival Horror, Action, Adventure, RPG, Life Simulation, Puzzle, Platformer"; String actual = testObject.checkGameGenres(); assertEquals(expected, actual); } - + public void test_checkGameGenreActionAdventure() { Games testObject = new Games(); String expected = "Ratchet & Clank, Astral Chain, Breakdown"; String actual = testObject.checkGameGenreActionAdventure(); assertEquals(expected, actual); } - + public void test_checkGameGenreRPG() { Games testObject = new Games(); String expected = "Persona 3 Portable, Atelier Totori Plus"; String actual = testObject.checkGameGenreRPG(); assertEquals(expected, actual); } - + public void test_checkConsolePlayStation() { Games testObject = new Games(); String expected = "Persona 5 Royal, Yakuza: Dead Souls, Persona 3 Portable, Atelier Totori Plus"; String actual = testObject.checkConsolePlayStation(); assertEquals(expected, actual); } - + public void test_checkConsoleNintendo() { Games testObject = new Games(); String expected = "Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Rhythm Paradise, Super Smash Bros. Ultimate, Tomodachi Life"; String actual = testObject.checkConsoleNintendo(); assertEquals(expected, actual); } - + public void test_checkConsoleXbox() { Games testObject = new Games(); String expected = "Jet Set Radio Future, Breakdown, Beautiful Katamari"; String actual = testObject.checkConsoleXbox(); assertEquals(expected, actual); } - + public void test_checkConsoleMultiplatform() { Games testObject = new Games(); String expected = "Ratchet & Clank, AI: The Somnium Files, Crash Bandicoot N. Sane Trilogy"; From 9236d77c54d3827c082249a481d6fc8f79d81472 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 19:13:41 +0100 Subject: [PATCH 12/56] Added Nintendo Switch Console Checker + Test --- projjpn/GamesDB.accdb | Bin 1015808 -> 1015808 bytes projjpn/GamesDB.laccdb | Bin 64 -> 0 bytes .../java/de/hs_fulda/ciip/projjpn/Games.java | 30 ++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 7 ++++ 4 files changed, 37 insertions(+) diff --git a/projjpn/GamesDB.accdb b/projjpn/GamesDB.accdb index f0c11c07f60b3ee4e594324152aca738ce380672..332543baa35d0f3bad171931a275406072b7362e 100644 GIT binary patch delta 133 zcmZo@uxn_r+rY%f#KE#zfbRq2WCcE+CV_1Nj3@Y59W|$NO`m>Nj!}})ul>0kBM>tI zF*6XeY=17tD!q_LliMfE(T4#D{28VT9AK@Qu5f@=X?fQHR`&K)$60}x4TwQ(4j|?P UVlE)&24Wr{=H0&PIA7Qf07tPf+yDRo delta 131 zcmZo@uxn_r+rY%f^n!V_0N)43$qIZtO#<5l7*FuAX1zLEpECWd9HS(oUHfx6Mj&Pa zVrC#_+5TLPReB+hC$~?SqYncR*fUHQIKW!7eANL~_K6!5+E*QC1!6WJW(Q&pAm#*O TE+FOxVjdvo-M;ELU)T-+0Sz+z diff --git a/projjpn/GamesDB.laccdb b/projjpn/GamesDB.laccdb index 5a03e0388674df9c401c0cef4dc38d6267f63454..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 GIT binary patch literal 0 HcmV?d00001 literal 64 icmZ>94fYQ45771WG4%0wG-gmh1CA-VnRytZ2t@#)Zwp2M diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 6b389ec..dab366d 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -478,4 +478,34 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkConsoleNintendoSwitch() { + String result = ""; + String query = "SELECT Game_Name, Game_Console FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameConsole = resultSet.getString("Game_Console"); + + if (gameConsole.equals("Nintendo Switch")) { + result += gameName + ", "; + + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 9168661..83d6fc7 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -100,4 +100,11 @@ public class GamesTest extends TestCase { String actual = testObject.checkConsoleMultiplatform(); assertEquals(expected, actual); } + + public void test_checkConsoleNintendoSwitch() { + Games testObject = new Games(); + String expected = "Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Super Smash Bros. Ultimate"; + String actual = testObject.checkConsoleNintendoSwitch(); + assertEquals(expected, actual); + } } From a2fe16c70306be5adb616183f2334f8bf7c3fbdf Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 19:21:54 +0100 Subject: [PATCH 13/56] Added Atlus Developer Checker + Test --- projjpn/GamesDB.laccdb | Bin 0 -> 64 bytes .../java/de/hs_fulda/ciip/projjpn/Games.java | 30 ++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 7 ++++ 3 files changed, 37 insertions(+) diff --git a/projjpn/GamesDB.laccdb b/projjpn/GamesDB.laccdb index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..5a03e0388674df9c401c0cef4dc38d6267f63454 100644 GIT binary patch literal 64 icmZ>94fYQ45771WG4%0wG-gmh1CA-VnRytZ2t@#)Zwp2M literal 0 HcmV?d00001 diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index dab366d..aa5f764 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -508,4 +508,34 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkDeveloperAtlus() { + String result = ""; + String query = "SELECT Game_Name, Game_Developer FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameDeveloper = resultSet.getString("Game_Developer"); + + if (gameDeveloper.equals("Atlus")) { + result += gameName + ", "; + + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 83d6fc7..66c06e2 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -107,4 +107,11 @@ public class GamesTest extends TestCase { String actual = testObject.checkConsoleNintendoSwitch(); assertEquals(expected, actual); } + + public void test_checkDeveloperAtlus() { + Games testObject = new Games(); + String expected = "Persona 5 Royal, Persona 3 Portable"; + String actual = testObject.checkDeveloperAtlus(); + assertEquals(expected, actual); + } } From 46d24fcdae0ad24ba0c56e216f1b91b45cb81b09 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 19:41:06 +0100 Subject: [PATCH 14/56] Added Developers Checker + Test --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 43 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 7 +++ 2 files changed, 50 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index aa5f764..ec367ab 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -538,4 +538,47 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkDevelopers() { + String result = ""; + String query = "SELECT Game_Developer FROM Games"; + boolean atlus = false; + boolean nintendoSpd = false; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameDeveloper = resultSet.getString("Game_Developer"); + + if (atlus && gameDeveloper.equals("Atlus")) { + continue; + } else if (nintendoSpd && gameDeveloper.equals("Nintendo SPD")) { + continue; + } + + switch (gameDeveloper) { + case "Atlus": + atlus = true; + break; + case "Nintendo SPD": + nintendoSpd = true; + break; + } + + result += gameDeveloper + ", "; + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 66c06e2..bb0b6b8 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -114,4 +114,11 @@ public class GamesTest extends TestCase { String actual = testObject.checkDeveloperAtlus(); assertEquals(expected, actual); } + + public void test_checkDevelopers() { + Games testObject = new Games(); + String expected = "Atlus, Insomniac Games, Platinum Games, Intelligent Systems, Artdink, Nintendo SPD, Sora Ltd., Ryu Ga Gotoku Studio, Sega Sports R&D, Namco, Spike Chunsoft, Bandai Namco Games, Gust Co. Ltd., Vicarious Visions"; + String actual = testObject.checkDevelopers(); + assertEquals(expected, actual); + } } From d9d81f9d693d70acea9568504e7ce9f5684ab482 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 19:51:37 +0100 Subject: [PATCH 15/56] Added Specific Publisher Checkers + Tests --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 64 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 ++++ 2 files changed, 78 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index ec367ab..1757c0f 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -581,4 +581,68 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkPublisherNintendo() { + String result = ""; + String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gamePublisherEu = resultSet.getString("Game_Publisher_EU"); + String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); + String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); + + if (gamePublisherEu.equals("Nintendo") || gamePublisherJp.equals("Nintendo") || gamePublisherNa.equals("Nintendo")) { + result += gameName + ", "; + + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkPublisherSega() { + String result = ""; + String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gamePublisherEu = resultSet.getString("Game_Publisher_EU"); + String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); + String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); + + if (gamePublisherEu.equals("Sega") || gamePublisherJp.equals("Sega") || gamePublisherNa.equals("Sega")) { + result += gameName + ", "; + + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index bb0b6b8..f2fe48a 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -121,4 +121,18 @@ public class GamesTest extends TestCase { String actual = testObject.checkDevelopers(); assertEquals(expected, actual); } + + public void test_checkPublisherNintendo() { + Games testObject = new Games(); + String expected = "Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Rhythm Paradise, Super Smash Bros. Ultimate, Tomodachi Life"; + String actual = testObject.checkPublisherNintendo(); + assertEquals(expected, actual); + } + + public void test_checkPublisherSega() { + Games testObject = new Games(); + String expected = "Persona 5 Royal, Yakuza: Dead Souls, Jet Set Radio Future"; + String actual = testObject.checkPublisherSega(); + assertEquals(expected, actual); + } } From f382b61b07122fe3a54673957a3f9931fa291237 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 19:56:26 +0100 Subject: [PATCH 16/56] Refactored Class and Test File --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 28 ++++++++++--------- .../de/hs_fulda/ciip/projjpn/GamesTest.java | 10 +++---- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 1757c0f..86cce3d 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -478,7 +478,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkConsoleNintendoSwitch() { String result = ""; String query = "SELECT Game_Name, Game_Console FROM Games"; @@ -493,8 +493,8 @@ public class Games { String gameName = resultSet.getString("Game_Name"); String gameConsole = resultSet.getString("Game_Console"); - if (gameConsole.equals("Nintendo Switch")) { - result += gameName + ", "; + if (gameConsole.equals("Nintendo Switch")) { + result += gameName + ", "; } @@ -508,7 +508,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkDeveloperAtlus() { String result = ""; String query = "SELECT Game_Name, Game_Developer FROM Games"; @@ -523,8 +523,8 @@ public class Games { String gameName = resultSet.getString("Game_Name"); String gameDeveloper = resultSet.getString("Game_Developer"); - if (gameDeveloper.equals("Atlus")) { - result += gameName + ", "; + if (gameDeveloper.equals("Atlus")) { + result += gameName + ", "; } @@ -538,7 +538,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkDevelopers() { String result = ""; String query = "SELECT Game_Developer FROM Games"; @@ -581,7 +581,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkPublisherNintendo() { String result = ""; String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -598,8 +598,9 @@ public class Games { String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); - if (gamePublisherEu.equals("Nintendo") || gamePublisherJp.equals("Nintendo") || gamePublisherNa.equals("Nintendo")) { - result += gameName + ", "; + if (gamePublisherEu.equals("Nintendo") || gamePublisherJp.equals("Nintendo") + || gamePublisherNa.equals("Nintendo")) { + result += gameName + ", "; } @@ -613,7 +614,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkPublisherSega() { String result = ""; String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -630,8 +631,9 @@ public class Games { String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); - if (gamePublisherEu.equals("Sega") || gamePublisherJp.equals("Sega") || gamePublisherNa.equals("Sega")) { - result += gameName + ", "; + if (gamePublisherEu.equals("Sega") || gamePublisherJp.equals("Sega") + || gamePublisherNa.equals("Sega")) { + result += gameName + ", "; } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index f2fe48a..d155b17 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -100,35 +100,35 @@ public class GamesTest extends TestCase { String actual = testObject.checkConsoleMultiplatform(); assertEquals(expected, actual); } - + public void test_checkConsoleNintendoSwitch() { Games testObject = new Games(); String expected = "Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Super Smash Bros. Ultimate"; String actual = testObject.checkConsoleNintendoSwitch(); assertEquals(expected, actual); } - + public void test_checkDeveloperAtlus() { Games testObject = new Games(); String expected = "Persona 5 Royal, Persona 3 Portable"; String actual = testObject.checkDeveloperAtlus(); assertEquals(expected, actual); } - + public void test_checkDevelopers() { Games testObject = new Games(); String expected = "Atlus, Insomniac Games, Platinum Games, Intelligent Systems, Artdink, Nintendo SPD, Sora Ltd., Ryu Ga Gotoku Studio, Sega Sports R&D, Namco, Spike Chunsoft, Bandai Namco Games, Gust Co. Ltd., Vicarious Visions"; String actual = testObject.checkDevelopers(); assertEquals(expected, actual); } - + public void test_checkPublisherNintendo() { Games testObject = new Games(); String expected = "Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Rhythm Paradise, Super Smash Bros. Ultimate, Tomodachi Life"; String actual = testObject.checkPublisherNintendo(); assertEquals(expected, actual); } - + public void test_checkPublisherSega() { Games testObject = new Games(); String expected = "Persona 5 Royal, Yakuza: Dead Souls, Jet Set Radio Future"; From 2521e7d5da4ada219bbef097cdfb576537472b4f Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 21:06:41 +0100 Subject: [PATCH 17/56] Added Publisher Check + Test --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 183 ++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 7 + 2 files changed, 190 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 86cce3d..c6abbfc 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -647,4 +647,187 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkPublishers() { + String result = ""; + String query = "SELECT Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; + boolean sega = false; + boolean atlus = false; + boolean sce = false; + boolean nintendo = false; + boolean namco = false; + boolean spikeChun = false; + boolean bandaiNamco = false; + boolean activision = false; + boolean whileSwitchOne = true; + boolean whileSwitchTwo = true; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gamePublisherEu = resultSet.getString("Game_Publisher_EU"); + String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); + String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); + + while (whileSwitchOne) { + while (whileSwitchTwo) { + if (sega && gamePublisherEu.equals("Sega")) { + break; + } else if (atlus && gamePublisherEu.equals("Atlus")) { + break; + } else if (sce && gamePublisherEu.equals("Sony Computer Entertainment")) { + break; + } else if (nintendo && gamePublisherEu.equals("Nintendo")) { + break; + } else if (namco && gamePublisherEu.equals("Namco")) { + break; + } else if (spikeChun && gamePublisherEu.equals("Spike Chunsoft")) { + break; + } else if (bandaiNamco && gamePublisherEu.equals("Bandai Namco Games")) { + break; + } else if (activision && gamePublisherEu.equals("Activision")) { + break; + } + + switch (gamePublisherEu) { + case "Sega": + sega = true; + break; + case "Atlus": + atlus = true; + break; + case "Sony Computer Entertainment": + sce = true; + break; + case "Nintendo": + nintendo = true; + break; + case "Namco": + namco = true; + break; + case "Spike Chunsoft": + spikeChun = true; + break; + case "Bandai Namco Games": + bandaiNamco = true; + break; + case "Activision": + activision = true; + break; + } + + result += gamePublisherEu + ", "; + break; + } + if (sega && gamePublisherJp.equals("Sega")) { + break; + } else if (atlus && gamePublisherJp.equals("Atlus")) { + break; + } else if (sce && gamePublisherJp.equals("Sony Computer Entertainment")) { + break; + } else if (nintendo && gamePublisherJp.equals("Nintendo")) { + break; + } else if (namco && gamePublisherJp.equals("Namco")) { + break; + } else if (spikeChun && gamePublisherJp.equals("Spike Chunsoft")) { + break; + } else if (bandaiNamco && gamePublisherJp.equals("Bandai Namco Games")) { + break; + } else if (activision && gamePublisherJp.equals("Activision")) { + break; + } + + switch (gamePublisherJp) { + case "Sega": + sega = true; + break; + case "Atlus": + atlus = true; + break; + case "Sony Computer Entertainment": + sce = true; + break; + case "Nintendo": + nintendo = true; + break; + case "Namco": + namco = true; + break; + case "Spike Chunsoft": + spikeChun = true; + break; + case "Bandai Namco Games": + bandaiNamco = true; + break; + case "Activision": + activision = true; + break; + } + + result += gamePublisherJp + ", "; + break; + } + if (sega && gamePublisherNa.equals("Sega")) { + continue; + } else if (atlus && gamePublisherNa.equals("Atlus")) { + continue; + } else if (sce && gamePublisherNa.equals("Sony Computer Entertainment")) { + continue; + } else if (nintendo && gamePublisherNa.equals("Nintendo")) { + continue; + } else if (namco && gamePublisherNa.equals("Namco")) { + continue; + } else if (spikeChun && gamePublisherNa.equals("Spike Chunsoft")) { + continue; + } else if (bandaiNamco && gamePublisherNa.equals("Bandai Namco Games")) { + continue; + } else if (activision && gamePublisherNa.equals("Activision")) { + continue; + } + + switch (gamePublisherNa) { + case "Sega": + sega = true; + break; + case "Atlus": + atlus = true; + break; + case "Sony Computer Entertainment": + sce = true; + break; + case "Nintendo": + nintendo = true; + break; + case "Namco": + namco = true; + break; + case "Spike Chunsoft": + spikeChun = true; + break; + case "Bandai Namco Games": + bandaiNamco = true; + break; + case "Activision": + activision = true; + break; + } + + result += gamePublisherNa + ", "; + + + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index d155b17..6b68266 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -135,4 +135,11 @@ public class GamesTest extends TestCase { String actual = testObject.checkPublisherSega(); assertEquals(expected, actual); } + + public void test_checkPublishers() { + Games testObject = new Games(); + String expected = "Sega, Atlus, Sony Computer Entertainment, Nintendo, Square Enix, Electronic Arts, Namco, Numskull Games, Spike Chunsoft, Ghostlight, Bandai Namco Games, Tecmo Koei Europe, Gust Co. Ltd., Tecmo Koei America, Activision"; + String actual = testObject.checkPublishers(); + assertEquals(expected, actual); + } } From 1b6402a527dd202ec4960ca36c3b346f7f85b1ef Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 22:01:33 +0100 Subject: [PATCH 18/56] Added EU Publisher Check + Test --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 43 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 7 +++ 2 files changed, 50 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index c6abbfc..c85f6ea 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -830,4 +830,47 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkPublishersEu() { + String result = ""; + String query = "SELECT Game_Publisher_EU FROM Games"; + boolean sega = false; + boolean nintendo = false; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gamePublisherEu = resultSet.getString("Game_Publisher_EU"); + + if (sega && gamePublisherEu.equals("Sega")) { + continue; + } else if (nintendo && gamePublisherEu.equals("Nintendo")) { + continue; + } + + switch (gamePublisherEu) { + case "Sega": + sega = true; + break; + case "Nintendo": + nintendo = true; + break; + } + + result += gamePublisherEu + ", "; + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 6b68266..ff3edff 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -142,4 +142,11 @@ public class GamesTest extends TestCase { String actual = testObject.checkPublishers(); assertEquals(expected, actual); } + + public void test_checkPublishersEu() { + Games testObject = new Games(); + String expected = "Sega, Sony Computer Entertainment, Nintendo, Electronic Arts, Numskull Games, Ghostlight, Bandai Namco Games, Tecmo Koei Europe, Activision"; + String actual = testObject.checkPublishersEu(); + assertEquals(expected, actual); + } } From b1bb4b2ea181fc4a3cf0c29b04c2e1a3223585aa Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 22:09:20 +0100 Subject: [PATCH 19/56] Added JP and NA Publisher Checks + Tests --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 98 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 +++ 2 files changed, 112 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index c85f6ea..6c4f430 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -873,4 +873,102 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkPublishersJp() { + String result = ""; + String query = "SELECT Game_Publisher_JP FROM Games"; + boolean atlus = false; + boolean nintendo = false; + boolean sega = false; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); + + if (atlus && gamePublisherJp.equals("Atlus")) { + continue; + } else if (nintendo && gamePublisherJp.equals("Nintendo")) { + continue; + } else if (sega && gamePublisherJp.equals("Sega")) { + continue; + } + + switch (gamePublisherJp) { + case "Atlus": + atlus = true; + break; + case "Nintendo": + nintendo = true; + break; + case "Sega": + sega = true; + break; + } + + result += gamePublisherJp + ", "; + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkPublishersNa() { + String result = ""; + String query = "SELECT Game_Publisher_NA FROM Games"; + boolean atlus = false; + boolean nintendo = false; + boolean sega = false; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gamePublisherNa = resultSet.getString("Game_Publisher_Na"); + + if (atlus && gamePublisherNa.equals("Atlus")) { + continue; + } else if (nintendo && gamePublisherNa.equals("Nintendo")) { + continue; + } else if (sega && gamePublisherNa.equals("Sega")) { + continue; + } + + switch (gamePublisherNa) { + case "Atlus": + atlus = true; + break; + case "Nintendo": + nintendo = true; + break; + case "Sega": + sega = true; + break; + } + + result += gamePublisherNa + ", "; + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index ff3edff..667b734 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -149,4 +149,18 @@ public class GamesTest extends TestCase { String actual = testObject.checkPublishersEu(); assertEquals(expected, actual); } + + public void test_checkPublishersJp() { + Games testObject = new Games(); + String expected = "Atlus, Sony Computer Entertainment, Nintendo, Square Enix, Sega, Namco, Spike Chunsoft, Bandai Namco Games, Gust Co. Ltd., Activision"; + String actual = testObject.checkPublishersJp(); + assertEquals(expected, actual); + } + + public void test_checkPublishersNa() { + Games testObject = new Games(); + String expected = "Atlus, Sony Computer Entertainment, Nintendo, Sega, Namco, Spike Chunsoft, Bandai Namco Games, Tecmo Koei America, Activision"; + String actual = testObject.checkPublishersNa(); + assertEquals(expected, actual); + } } From 46b885d0bb7335f63221a45d704deeb944d04f50 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 22:36:09 +0100 Subject: [PATCH 20/56] Added Unknown Release Checker + Test --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 30 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 7 +++++ 2 files changed, 37 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 6c4f430..6ccee27 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -971,4 +971,34 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkReleaseDateUnknown() { + String result = ""; + String query = "SELECT Game_Name, Game_Release_AU FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameReleaseAu = resultSet.getString("Game_Release_AU"); + + if (gameReleaseAu == null) { + + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 667b734..09c7e46 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -163,4 +163,11 @@ public class GamesTest extends TestCase { String actual = testObject.checkPublishersNa(); assertEquals(expected, actual); } + + public void test_checkReleaseDateUnknown() { + Games testObject = new Games(); + String expected = "Breakdown, Atelier Totori Plus"; + String actual = testObject.checkReleaseDateUnknown(); + assertEquals(expected, actual); + } } From 26dfeb3d8ec16c629a88bd3d8e4e1d9a591532a6 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 23:07:36 +0100 Subject: [PATCH 21/56] Added Game Listing + Test --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 28 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 7 +++++ 2 files changed, 35 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 6ccee27..3be21e7 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -21,6 +21,34 @@ public class Games { } } + public String checkGames() { + String result = ""; + String query = "SELECT Game_Name FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + + + + result += gameName + ", "; + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + public String checkConsoles() { String result = ""; String query = "SELECT Game_Console FROM Games"; diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 09c7e46..d4b2e69 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -9,6 +9,13 @@ public class GamesTest extends TestCase { boolean actual = testObject.checkConnection(); assertEquals(expected, actual); } + + public void test_checkGames() { + Games testObject = new Games(); + String expected = "Persona 5 Royal, Ratchet & Clank, Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Rhythm Paradise, Super Smash Bros. Ultimate, Yakuza: Dead Souls, Jet Set Radio Future, Breakdown, AI: The Somnium Files, Persona 3 Portable, Tomodachi Life, Beautiful Katamari, Atelier Totori Plus, Crash Bandicoot N. Sane Trilogy"; + String actual = testObject.checkGames(); + assertEquals(expected, actual); + } public void test_checkConsoles() { Games testObject = new Games(); From e8f46e214a70080a6d42e07d9272d4454645e071 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 23:09:48 +0100 Subject: [PATCH 22/56] Refactored Class and Test File --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 28 ++++++++----------- .../de/hs_fulda/ciip/projjpn/GamesTest.java | 12 ++++---- 2 files changed, 17 insertions(+), 23 deletions(-) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 3be21e7..1e3c441 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -34,8 +34,6 @@ public class Games { while (resultSet.next()) { String gameName = resultSet.getString("Game_Name"); - - result += gameName + ", "; } @@ -48,7 +46,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkConsoles() { String result = ""; String query = "SELECT Game_Console FROM Games"; @@ -675,7 +673,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkPublishers() { String result = ""; String query = "SELECT Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -687,8 +685,6 @@ public class Games { boolean spikeChun = false; boolean bandaiNamco = false; boolean activision = false; - boolean whileSwitchOne = true; - boolean whileSwitchTwo = true; try { Connection connection = DriverManager.getConnection(databaseURL); @@ -700,9 +696,9 @@ public class Games { String gamePublisherEu = resultSet.getString("Game_Publisher_EU"); String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); - - while (whileSwitchOne) { - while (whileSwitchTwo) { + + while (true) { + while (true) { if (sega && gamePublisherEu.equals("Sega")) { break; } else if (atlus && gamePublisherEu.equals("Atlus")) { @@ -846,8 +842,6 @@ public class Games { result += gamePublisherNa + ", "; - - } statement.close(); connection.close(); @@ -858,7 +852,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkPublishersEu() { String result = ""; String query = "SELECT Game_Publisher_EU FROM Games"; @@ -901,7 +895,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkPublishersJp() { String result = ""; String query = "SELECT Game_Publisher_JP FROM Games"; @@ -950,7 +944,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkPublishersNa() { String result = ""; String query = "SELECT Game_Publisher_NA FROM Games"; @@ -999,7 +993,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkReleaseDateUnknown() { String result = ""; String query = "SELECT Game_Name, Game_Release_AU FROM Games"; @@ -1015,8 +1009,8 @@ public class Games { String gameReleaseAu = resultSet.getString("Game_Release_AU"); if (gameReleaseAu == null) { - - result += gameName + ", "; + + result += gameName + ", "; } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index d4b2e69..8c52eea 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -9,7 +9,7 @@ public class GamesTest extends TestCase { boolean actual = testObject.checkConnection(); assertEquals(expected, actual); } - + public void test_checkGames() { Games testObject = new Games(); String expected = "Persona 5 Royal, Ratchet & Clank, Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Rhythm Paradise, Super Smash Bros. Ultimate, Yakuza: Dead Souls, Jet Set Radio Future, Breakdown, AI: The Somnium Files, Persona 3 Portable, Tomodachi Life, Beautiful Katamari, Atelier Totori Plus, Crash Bandicoot N. Sane Trilogy"; @@ -142,35 +142,35 @@ public class GamesTest extends TestCase { String actual = testObject.checkPublisherSega(); assertEquals(expected, actual); } - + public void test_checkPublishers() { Games testObject = new Games(); String expected = "Sega, Atlus, Sony Computer Entertainment, Nintendo, Square Enix, Electronic Arts, Namco, Numskull Games, Spike Chunsoft, Ghostlight, Bandai Namco Games, Tecmo Koei Europe, Gust Co. Ltd., Tecmo Koei America, Activision"; String actual = testObject.checkPublishers(); assertEquals(expected, actual); } - + public void test_checkPublishersEu() { Games testObject = new Games(); String expected = "Sega, Sony Computer Entertainment, Nintendo, Electronic Arts, Numskull Games, Ghostlight, Bandai Namco Games, Tecmo Koei Europe, Activision"; String actual = testObject.checkPublishersEu(); assertEquals(expected, actual); } - + public void test_checkPublishersJp() { Games testObject = new Games(); String expected = "Atlus, Sony Computer Entertainment, Nintendo, Square Enix, Sega, Namco, Spike Chunsoft, Bandai Namco Games, Gust Co. Ltd., Activision"; String actual = testObject.checkPublishersJp(); assertEquals(expected, actual); } - + public void test_checkPublishersNa() { Games testObject = new Games(); String expected = "Atlus, Sony Computer Entertainment, Nintendo, Sega, Namco, Spike Chunsoft, Bandai Namco Games, Tecmo Koei America, Activision"; String actual = testObject.checkPublishersNa(); assertEquals(expected, actual); } - + public void test_checkReleaseDateUnknown() { Games testObject = new Games(); String expected = "Breakdown, Atelier Totori Plus"; From 3bb3c06fd464750ed2cf181af65e1ad8bdfe717f Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sat, 12 Feb 2022 23:50:56 +0100 Subject: [PATCH 23/56] Added Release Year Checkers + Tests --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 76 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 ++++ 2 files changed, 90 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 1e3c441..370c05e 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1023,4 +1023,80 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkAllSameReleaseYear() { + String result = ""; + String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameReleaseEu = resultSet.getString("Game_Release_EU"); + String gameReleaseJp = resultSet.getString("Game_Release_JP"); + String gameReleaseNa = resultSet.getString("Game_Release_NA"); + String gameReleaseAu = resultSet.getString("Game_Release_AU"); + + if (gameReleaseAu == null) { + + } else { + if (gameReleaseEu.substring(0, 4).equals(gameReleaseJp.substring(0, 4)) && gameReleaseJp.substring(0, 4).equals(gameReleaseNa.substring(0, 4)) + && gameReleaseEu.substring(0, 4).equals(gameReleaseNa.substring(0, 4)) && gameReleaseAu.substring(0, 4).equals(gameReleaseEu.substring(0, 4)) + && gameReleaseAu.substring(0, 4).equals(gameReleaseJp.substring(0, 4)) && gameReleaseAu.substring(0, 4).equals(gameReleaseNa.substring(0, 4))) { + result += gameName + ", "; + } + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkAllDifferentReleaseYear() { + String result = ""; + String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameReleaseEu = resultSet.getString("Game_Release_EU"); + String gameReleaseJp = resultSet.getString("Game_Release_JP"); + String gameReleaseNa = resultSet.getString("Game_Release_NA"); + String gameReleaseAu = resultSet.getString("Game_Release_AU"); + + if (gameReleaseAu == null) { + result += gameName + ", "; + } else { + if (!gameReleaseEu.substring(0, 4).equals(gameReleaseJp.substring(0, 4)) || !gameReleaseJp.substring(0, 4).equals(gameReleaseNa.substring(0, 4)) + || !gameReleaseEu.substring(0, 4).equals(gameReleaseNa.substring(0, 4)) || !gameReleaseAu.substring(0, 4).equals(gameReleaseEu.substring(0, 4)) + || !gameReleaseAu.substring(0, 4).equals(gameReleaseJp.substring(0, 4)) || !gameReleaseAu.substring(0, 4).equals(gameReleaseNa.substring(0, 4))) { + result += gameName + ", "; + } + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 8c52eea..ba270b2 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -177,4 +177,18 @@ public class GamesTest extends TestCase { String actual = testObject.checkReleaseDateUnknown(); assertEquals(expected, actual); } + + public void test_checkAllSameReleaseYear() { + Games testObject = new Games(); + String expected = "Ratchet & Clank, Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Super Smash Bros. Ultimate, Jet Set Radio Future, AI: The Somnium Files, Crash Bandicoot N. Sane Trilogy"; + String actual = testObject.checkAllSameReleaseYear(); + assertEquals(expected, actual); + } + + public void test_checkAllDifferentReleaseYear() { + Games testObject = new Games(); + String expected = "Persona 5 Royal, Rhythm Paradise, Yakuza: Dead Souls, Breakdown, Persona 3 Portable, Tomodachi Life, Beautiful Katamari, Atelier Totori Plus"; + String actual = testObject.checkAllDifferentReleaseYear(); + assertEquals(expected, actual); + } } From 4caeda11ea78b39569f5b81ced79e1659a5a701b Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Sun, 13 Feb 2022 23:59:20 +0100 Subject: [PATCH 24/56] Added Function which prints out the list for users without MS Access --- projjpn/GamesDB.accdb | Bin 1015808 -> 1015808 bytes projjpn/GamesDB.laccdb | Bin 64 -> 0 bytes .../java/de/hs_fulda/ciip/projjpn/Games.java | 66 ++++++++++++++++++ 3 files changed, 66 insertions(+) diff --git a/projjpn/GamesDB.accdb b/projjpn/GamesDB.accdb index 332543baa35d0f3bad171931a275406072b7362e..380bfb7e9108dd721ab2a676ca9268ab7e907647 100644 GIT binary patch delta 134 zcmZo@uxn_r+rY%fB*C&-fbRq2WCcE+CV_1Nj3@Y553({|oIm}n9HS&-So?E1Mj&Pa zVrC#_+5TLPReB+hB)3nPqYncRgfmPRIKVnNj!}})ul>0kBM>tI zF*6XeY=17tD!q_LliMfE(T4#D{28VT9AKTZeb)ij4{Q@R2(+&{&I-hAK+F!r96-zo U#9Tnk4a7V^%)5QnalWt}0AG+X-~a#s diff --git a/projjpn/GamesDB.laccdb b/projjpn/GamesDB.laccdb index 5a03e0388674df9c401c0cef4dc38d6267f63454..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 GIT binary patch literal 0 HcmV?d00001 literal 64 icmZ>94fYQ45771WG4%0wG-gmh1CA-VnRytZ2t@#)Zwp2M diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 370c05e..efbbe6e 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -21,6 +21,72 @@ public class Games { } } + public String printTable() { + String result = ""; + String query = "SELECT * FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + int id = resultSet.getInt("Game_ID"); + String gameName = resultSet.getString("Game_Name"); + String gameConsole = resultSet.getString("Game_Console"); + String gameDeveloper = resultSet.getString("Game_Developer"); + String gamePublisherEu = resultSet.getString("Game_Developer"); + String gamePublisherJp = resultSet.getString("Game_Console"); + String gamePublisherNa = resultSet.getString("Game_Console"); + String gameGenre = resultSet.getString("Game_Genre"); + + String gameReleaseEu = resultSet.getString("Game_Release_EU"); + String gameReleaseEuDots = gameReleaseEu.substring(8, 10) + "." + gameReleaseEu.substring(5, 7) + + "." + gameReleaseEu.substring(0, 4); + + String gameReleaseJp = resultSet.getString("Game_Release_JP"); + String gameReleaseJpDots = gameReleaseJp.substring(8, 10) + "." + gameReleaseJp.substring(5, 7) + + "." + gameReleaseJp.substring(0, 4); + + String gameReleaseNa = resultSet.getString("Game_Release_NA"); + String gameReleaseNaDots = gameReleaseNa.substring(8, 10) + "." + gameReleaseNa.substring(5, 7) + + "." + gameReleaseNa.substring(0, 4); + String gameReleaseAu = resultSet.getString("Game_Release_AU"); + String gameReleaseAuDots; + if (gameReleaseAu != null) { + gameReleaseAuDots = gameReleaseAu.substring(8, 10) + "." + gameReleaseAu.substring(5, 7) + + "." + gameReleaseAu.substring(0, 4); + } else { + gameReleaseAuDots = "Unknown"; + } + + int gameUsk = resultSet.getInt("Game_USK_Rating"); + int gamePegi = resultSet.getInt("Game_PEGI_Rating"); + String gameEsrb = resultSet.getString("Game_ESRB_Rating"); + String gameCero = resultSet.getString("Game_CERO_Rating"); + String gameAcb = resultSet.getString("Game_ACB_Rating"); + String gamePlayers = resultSet.getString("Game_Players"); + + if (gamePegi != 0) { + result += id + ": " + gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu + ", " + gamePublisherJp + ", " + gamePublisherNa + ", " + gameGenre + ", " + gameReleaseEuDots + ", " + gameReleaseJpDots + ", " + gameReleaseNaDots + ", " + gameReleaseAuDots + ", " + gameUsk + ", " + gamePegi + ", " + gameEsrb + ", " + gameCero + ", " + gameAcb + ", " + gamePlayers + "\n"; + } else { + result += id + ": " + gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu + ", " + gamePublisherJp + ", " + gamePublisherNa + ", " + gameGenre + ", " + gameReleaseEuDots + ", " + gameReleaseJpDots + ", " + gameReleaseNaDots + ", " + gameReleaseAuDots + ", " + gameUsk + ", Unknown, " + gameEsrb + ", " + gameCero + ", " + gameAcb + ", " + gamePlayers + "\n"; + } + + + } + statement.close(); + + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + // The substring removes the last New line in the String. + return result.substring(0, result.length() - 1); + } + public String checkGames() { String result = ""; String query = "SELECT Game_Name FROM Games"; From 89e569711467fd893ab93838178966597aa61cc3 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Mon, 14 Feb 2022 00:14:32 +0100 Subject: [PATCH 25/56] Added Player Checkers + Tests --- projjpn/GamesDB.laccdb | Bin 0 -> 64 bytes .../java/de/hs_fulda/ciip/projjpn/Games.java | 58 ++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 +++++ 3 files changed, 72 insertions(+) diff --git a/projjpn/GamesDB.laccdb b/projjpn/GamesDB.laccdb index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..5a03e0388674df9c401c0cef4dc38d6267f63454 100644 GIT binary patch literal 64 icmZ>94fYQ45771WG4%0wG-gmh1CA-VnRytZ2t@#)Zwp2M literal 0 HcmV?d00001 diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index efbbe6e..e2aa307 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1165,4 +1165,62 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkOnePlayer() { + String result = ""; + String query = "SELECT Game_Name, Game_Players FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gamePlayers = resultSet.getString("Game_Players"); + + if (gamePlayers.equals("1") || gamePlayers.equals("1-2") || gamePlayers.equals("1-4") || gamePlayers.equals("1-8")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkTwoPlayer() { + String result = ""; + String query = "SELECT Game_Name, Game_Players FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gamePlayers = resultSet.getString("Game_Players"); + + if (gamePlayers.equals("1-2") || gamePlayers.equals("1-4") || gamePlayers.equals("1-8")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index ba270b2..2009338 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -191,4 +191,18 @@ public class GamesTest extends TestCase { String actual = testObject.checkAllDifferentReleaseYear(); assertEquals(expected, actual); } + + public void test_checkOnePlayer() { + Games testObject = new Games(); + String expected = "Persona 5 Royal, Ratchet & Clank, Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Rhythm Paradise, Super Smash Bros. Ultimate, Yakuza: Dead Souls, Jet Set Radio Future, Breakdown, AI: The Somnium Files, Persona 3 Portable, Tomodachi Life, Beautiful Katamari, Atelier Totori Plus, Crash Bandicoot N. Sane Trilogy"; + String actual = testObject.checkOnePlayer(); + assertEquals(expected, actual); + } + + public void test_checkTwoPlayer() { + Games testObject = new Games(); + String expected = "Astral Chain, Super Smash Bros. Ultimate, Jet Set Radio Future"; + String actual = testObject.checkTwoPlayer(); + assertEquals(expected, actual); + } } From 7996b7c8c24d278998292a5b9edfef50194d7fa2 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Mon, 14 Feb 2022 00:18:05 +0100 Subject: [PATCH 26/56] Added more Player Checkers + Tests --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 58 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 +++++ 2 files changed, 72 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index e2aa307..d0b8433 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1223,4 +1223,62 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkFourPlayer() { + String result = ""; + String query = "SELECT Game_Name, Game_Players FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gamePlayers = resultSet.getString("Game_Players"); + + if (gamePlayers.equals("1-4") || gamePlayers.equals("1-8")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkEightPlayer() { + String result = ""; + String query = "SELECT Game_Name, Game_Players FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gamePlayers = resultSet.getString("Game_Players"); + + if (gamePlayers.equals("1-8")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 2009338..5d3cb23 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -205,4 +205,18 @@ public class GamesTest extends TestCase { String actual = testObject.checkTwoPlayer(); assertEquals(expected, actual); } + + public void test_checkFourPlayer() { + Games testObject = new Games(); + String expected = "Super Smash Bros. Ultimate, Jet Set Radio Future"; + String actual = testObject.checkFourPlayer(); + assertEquals(expected, actual); + } + + public void test_checkEightPlayer() { + Games testObject = new Games(); + String expected = "Super Smash Bros. Ultimate"; + String actual = testObject.checkEightPlayer(); + assertEquals(expected, actual); + } } From c145c2b5102c505ee2e0b8f3a981ec85c6ab8eae Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Mon, 14 Feb 2022 00:22:12 +0100 Subject: [PATCH 27/56] Added One Player Only Checker + Test --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 29 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 7 +++++ 2 files changed, 36 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index d0b8433..f46e4b4 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1281,4 +1281,33 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkOnePlayerOnly() { + String result = ""; + String query = "SELECT Game_Name, Game_Players FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gamePlayers = resultSet.getString("Game_Players"); + + if (gamePlayers.equals("1")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 5d3cb23..ddc27a2 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -219,4 +219,11 @@ public class GamesTest extends TestCase { String actual = testObject.checkEightPlayer(); assertEquals(expected, actual); } + + public void test_checkOnePlayerOnly() { + Games testObject = new Games(); + String expected = "Persona 5 Royal, Ratchet & Clank, Fire Emblem: Three Houses, Triangle Strategy, Rhythm Paradise, Yakuza: Dead Souls, Breakdown, AI: The Somnium Files, Persona 3 Portable, Tomodachi Life, Beautiful Katamari, Atelier Totori Plus, Crash Bandicoot N. Sane Trilogy"; + String actual = testObject.checkOnePlayerOnly(); + assertEquals(expected, actual); + } } From ae69414f36ba599c72a77f6fbda15fbcf7ee0bce Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Mon, 14 Feb 2022 00:24:09 +0100 Subject: [PATCH 28/56] Refactored Class and Test File --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 134 ++++++++++-------- .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 +- 2 files changed, 81 insertions(+), 67 deletions(-) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index f46e4b4..e9033ee 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -32,48 +32,55 @@ public class Games { ResultSet resultSet = statement.executeQuery(query); while (resultSet.next()) { - int id = resultSet.getInt("Game_ID"); - String gameName = resultSet.getString("Game_Name"); - String gameConsole = resultSet.getString("Game_Console"); - String gameDeveloper = resultSet.getString("Game_Developer"); - String gamePublisherEu = resultSet.getString("Game_Developer"); - String gamePublisherJp = resultSet.getString("Game_Console"); - String gamePublisherNa = resultSet.getString("Game_Console"); - String gameGenre = resultSet.getString("Game_Genre"); - - String gameReleaseEu = resultSet.getString("Game_Release_EU"); - String gameReleaseEuDots = gameReleaseEu.substring(8, 10) + "." + gameReleaseEu.substring(5, 7) - + "." + gameReleaseEu.substring(0, 4); - - String gameReleaseJp = resultSet.getString("Game_Release_JP"); - String gameReleaseJpDots = gameReleaseJp.substring(8, 10) + "." + gameReleaseJp.substring(5, 7) - + "." + gameReleaseJp.substring(0, 4); - - String gameReleaseNa = resultSet.getString("Game_Release_NA"); - String gameReleaseNaDots = gameReleaseNa.substring(8, 10) + "." + gameReleaseNa.substring(5, 7) - + "." + gameReleaseNa.substring(0, 4); - String gameReleaseAu = resultSet.getString("Game_Release_AU"); - String gameReleaseAuDots; - if (gameReleaseAu != null) { - gameReleaseAuDots = gameReleaseAu.substring(8, 10) + "." + gameReleaseAu.substring(5, 7) - + "." + gameReleaseAu.substring(0, 4); - } else { - gameReleaseAuDots = "Unknown"; - } - - int gameUsk = resultSet.getInt("Game_USK_Rating"); - int gamePegi = resultSet.getInt("Game_PEGI_Rating"); - String gameEsrb = resultSet.getString("Game_ESRB_Rating"); - String gameCero = resultSet.getString("Game_CERO_Rating"); - String gameAcb = resultSet.getString("Game_ACB_Rating"); - String gamePlayers = resultSet.getString("Game_Players"); - - if (gamePegi != 0) { - result += id + ": " + gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu + ", " + gamePublisherJp + ", " + gamePublisherNa + ", " + gameGenre + ", " + gameReleaseEuDots + ", " + gameReleaseJpDots + ", " + gameReleaseNaDots + ", " + gameReleaseAuDots + ", " + gameUsk + ", " + gamePegi + ", " + gameEsrb + ", " + gameCero + ", " + gameAcb + ", " + gamePlayers + "\n"; - } else { - result += id + ": " + gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu + ", " + gamePublisherJp + ", " + gamePublisherNa + ", " + gameGenre + ", " + gameReleaseEuDots + ", " + gameReleaseJpDots + ", " + gameReleaseNaDots + ", " + gameReleaseAuDots + ", " + gameUsk + ", Unknown, " + gameEsrb + ", " + gameCero + ", " + gameAcb + ", " + gamePlayers + "\n"; - } - + int id = resultSet.getInt("Game_ID"); + String gameName = resultSet.getString("Game_Name"); + String gameConsole = resultSet.getString("Game_Console"); + String gameDeveloper = resultSet.getString("Game_Developer"); + String gamePublisherEu = resultSet.getString("Game_Developer"); + String gamePublisherJp = resultSet.getString("Game_Console"); + String gamePublisherNa = resultSet.getString("Game_Console"); + String gameGenre = resultSet.getString("Game_Genre"); + + String gameReleaseEu = resultSet.getString("Game_Release_EU"); + String gameReleaseEuDots = gameReleaseEu.substring(8, 10) + "." + gameReleaseEu.substring(5, 7) + "." + + gameReleaseEu.substring(0, 4); + + String gameReleaseJp = resultSet.getString("Game_Release_JP"); + String gameReleaseJpDots = gameReleaseJp.substring(8, 10) + "." + gameReleaseJp.substring(5, 7) + "." + + gameReleaseJp.substring(0, 4); + + String gameReleaseNa = resultSet.getString("Game_Release_NA"); + String gameReleaseNaDots = gameReleaseNa.substring(8, 10) + "." + gameReleaseNa.substring(5, 7) + "." + + gameReleaseNa.substring(0, 4); + String gameReleaseAu = resultSet.getString("Game_Release_AU"); + String gameReleaseAuDots; + if (gameReleaseAu != null) { + gameReleaseAuDots = gameReleaseAu.substring(8, 10) + "." + gameReleaseAu.substring(5, 7) + "." + + gameReleaseAu.substring(0, 4); + } else { + gameReleaseAuDots = "Unknown"; + } + + int gameUsk = resultSet.getInt("Game_USK_Rating"); + int gamePegi = resultSet.getInt("Game_PEGI_Rating"); + String gameEsrb = resultSet.getString("Game_ESRB_Rating"); + String gameCero = resultSet.getString("Game_CERO_Rating"); + String gameAcb = resultSet.getString("Game_ACB_Rating"); + String gamePlayers = resultSet.getString("Game_Players"); + + if (gamePegi != 0) { + result += id + ": " + gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu + + ", " + gamePublisherJp + ", " + gamePublisherNa + ", " + gameGenre + ", " + + gameReleaseEuDots + ", " + gameReleaseJpDots + ", " + gameReleaseNaDots + ", " + + gameReleaseAuDots + ", " + gameUsk + ", " + gamePegi + ", " + gameEsrb + ", " + gameCero + + ", " + gameAcb + ", " + gamePlayers + "\n"; + } else { + result += id + ": " + gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu + + ", " + gamePublisherJp + ", " + gamePublisherNa + ", " + gameGenre + ", " + + gameReleaseEuDots + ", " + gameReleaseJpDots + ", " + gameReleaseNaDots + ", " + + gameReleaseAuDots + ", " + gameUsk + ", Unknown, " + gameEsrb + ", " + gameCero + ", " + + gameAcb + ", " + gamePlayers + "\n"; + } } statement.close(); @@ -86,7 +93,7 @@ public class Games { // The substring removes the last New line in the String. return result.substring(0, result.length() - 1); } - + public String checkGames() { String result = ""; String query = "SELECT Game_Name FROM Games"; @@ -1089,7 +1096,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkAllSameReleaseYear() { String result = ""; String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; @@ -1106,13 +1113,16 @@ public class Games { String gameReleaseJp = resultSet.getString("Game_Release_JP"); String gameReleaseNa = resultSet.getString("Game_Release_NA"); String gameReleaseAu = resultSet.getString("Game_Release_AU"); - + if (gameReleaseAu == null) { - + } else { - if (gameReleaseEu.substring(0, 4).equals(gameReleaseJp.substring(0, 4)) && gameReleaseJp.substring(0, 4).equals(gameReleaseNa.substring(0, 4)) - && gameReleaseEu.substring(0, 4).equals(gameReleaseNa.substring(0, 4)) && gameReleaseAu.substring(0, 4).equals(gameReleaseEu.substring(0, 4)) - && gameReleaseAu.substring(0, 4).equals(gameReleaseJp.substring(0, 4)) && gameReleaseAu.substring(0, 4).equals(gameReleaseNa.substring(0, 4))) { + if (gameReleaseEu.substring(0, 4).equals(gameReleaseJp.substring(0, 4)) + && gameReleaseJp.substring(0, 4).equals(gameReleaseNa.substring(0, 4)) + && gameReleaseEu.substring(0, 4).equals(gameReleaseNa.substring(0, 4)) + && gameReleaseAu.substring(0, 4).equals(gameReleaseEu.substring(0, 4)) + && gameReleaseAu.substring(0, 4).equals(gameReleaseJp.substring(0, 4)) + && gameReleaseAu.substring(0, 4).equals(gameReleaseNa.substring(0, 4))) { result += gameName + ", "; } } @@ -1127,7 +1137,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkAllDifferentReleaseYear() { String result = ""; String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; @@ -1144,13 +1154,16 @@ public class Games { String gameReleaseJp = resultSet.getString("Game_Release_JP"); String gameReleaseNa = resultSet.getString("Game_Release_NA"); String gameReleaseAu = resultSet.getString("Game_Release_AU"); - + if (gameReleaseAu == null) { result += gameName + ", "; } else { - if (!gameReleaseEu.substring(0, 4).equals(gameReleaseJp.substring(0, 4)) || !gameReleaseJp.substring(0, 4).equals(gameReleaseNa.substring(0, 4)) - || !gameReleaseEu.substring(0, 4).equals(gameReleaseNa.substring(0, 4)) || !gameReleaseAu.substring(0, 4).equals(gameReleaseEu.substring(0, 4)) - || !gameReleaseAu.substring(0, 4).equals(gameReleaseJp.substring(0, 4)) || !gameReleaseAu.substring(0, 4).equals(gameReleaseNa.substring(0, 4))) { + if (!gameReleaseEu.substring(0, 4).equals(gameReleaseJp.substring(0, 4)) + || !gameReleaseJp.substring(0, 4).equals(gameReleaseNa.substring(0, 4)) + || !gameReleaseEu.substring(0, 4).equals(gameReleaseNa.substring(0, 4)) + || !gameReleaseAu.substring(0, 4).equals(gameReleaseEu.substring(0, 4)) + || !gameReleaseAu.substring(0, 4).equals(gameReleaseJp.substring(0, 4)) + || !gameReleaseAu.substring(0, 4).equals(gameReleaseNa.substring(0, 4))) { result += gameName + ", "; } } @@ -1165,7 +1178,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkOnePlayer() { String result = ""; String query = "SELECT Game_Name, Game_Players FROM Games"; @@ -1180,7 +1193,8 @@ public class Games { String gameName = resultSet.getString("Game_Name"); String gamePlayers = resultSet.getString("Game_Players"); - if (gamePlayers.equals("1") || gamePlayers.equals("1-2") || gamePlayers.equals("1-4") || gamePlayers.equals("1-8")) { + if (gamePlayers.equals("1") || gamePlayers.equals("1-2") || gamePlayers.equals("1-4") + || gamePlayers.equals("1-8")) { result += gameName + ", "; } @@ -1194,7 +1208,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkTwoPlayer() { String result = ""; String query = "SELECT Game_Name, Game_Players FROM Games"; @@ -1223,7 +1237,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkFourPlayer() { String result = ""; String query = "SELECT Game_Name, Game_Players FROM Games"; @@ -1252,7 +1266,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkEightPlayer() { String result = ""; String query = "SELECT Game_Name, Game_Players FROM Games"; @@ -1281,7 +1295,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkOnePlayerOnly() { String result = ""; String query = "SELECT Game_Name, Game_Players FROM Games"; diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index ddc27a2..6d02385 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -177,49 +177,49 @@ public class GamesTest extends TestCase { String actual = testObject.checkReleaseDateUnknown(); assertEquals(expected, actual); } - + public void test_checkAllSameReleaseYear() { Games testObject = new Games(); String expected = "Ratchet & Clank, Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Super Smash Bros. Ultimate, Jet Set Radio Future, AI: The Somnium Files, Crash Bandicoot N. Sane Trilogy"; String actual = testObject.checkAllSameReleaseYear(); assertEquals(expected, actual); } - + public void test_checkAllDifferentReleaseYear() { Games testObject = new Games(); String expected = "Persona 5 Royal, Rhythm Paradise, Yakuza: Dead Souls, Breakdown, Persona 3 Portable, Tomodachi Life, Beautiful Katamari, Atelier Totori Plus"; String actual = testObject.checkAllDifferentReleaseYear(); assertEquals(expected, actual); } - + public void test_checkOnePlayer() { Games testObject = new Games(); String expected = "Persona 5 Royal, Ratchet & Clank, Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Rhythm Paradise, Super Smash Bros. Ultimate, Yakuza: Dead Souls, Jet Set Radio Future, Breakdown, AI: The Somnium Files, Persona 3 Portable, Tomodachi Life, Beautiful Katamari, Atelier Totori Plus, Crash Bandicoot N. Sane Trilogy"; String actual = testObject.checkOnePlayer(); assertEquals(expected, actual); } - + public void test_checkTwoPlayer() { Games testObject = new Games(); String expected = "Astral Chain, Super Smash Bros. Ultimate, Jet Set Radio Future"; String actual = testObject.checkTwoPlayer(); assertEquals(expected, actual); } - + public void test_checkFourPlayer() { Games testObject = new Games(); String expected = "Super Smash Bros. Ultimate, Jet Set Radio Future"; String actual = testObject.checkFourPlayer(); assertEquals(expected, actual); } - + public void test_checkEightPlayer() { Games testObject = new Games(); String expected = "Super Smash Bros. Ultimate"; String actual = testObject.checkEightPlayer(); assertEquals(expected, actual); } - + public void test_checkOnePlayerOnly() { Games testObject = new Games(); String expected = "Persona 5 Royal, Ratchet & Clank, Fire Emblem: Three Houses, Triangle Strategy, Rhythm Paradise, Yakuza: Dead Souls, Breakdown, AI: The Somnium Files, Persona 3 Portable, Tomodachi Life, Beautiful Katamari, Atelier Totori Plus, Crash Bandicoot N. Sane Trilogy"; From dce812bdf307949599466e3b35eba293efb014b2 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Mon, 14 Feb 2022 00:36:59 +0100 Subject: [PATCH 29/56] Added USK Checker + Test --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 29 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 7 +++++ 2 files changed, 36 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index e9033ee..44217bf 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1324,4 +1324,33 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkUskZero() { + String result = ""; + String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + int gameUsk = resultSet.getInt("Game_USK_Rating"); + + if (gameUsk == 0) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 6d02385..044b438 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -226,4 +226,11 @@ public class GamesTest extends TestCase { String actual = testObject.checkOnePlayerOnly(); assertEquals(expected, actual); } + + public void test_checkUskZero() { + Games testObject = new Games(); + String expected = "Rhythm Paradise, Tomodachi Life, Beautiful Katamari"; + String actual = testObject.checkUskZero(); + assertEquals(expected, actual); + } } From adf9fa953b961d3826c9b6123c584096afcfd45a Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Mon, 14 Feb 2022 00:41:53 +0100 Subject: [PATCH 30/56] Added additional USK Checkers + Tests --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 58 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 15 +++++ 2 files changed, 73 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 44217bf..b8b9f2f 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1353,4 +1353,62 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkUskSix() { + String result = ""; + String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + int gameUsk = resultSet.getInt("Game_USK_Rating"); + + if (gameUsk == 6) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkUskTwelve() { + String result = ""; + String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + int gameUsk = resultSet.getInt("Game_USK_Rating"); + + if (gameUsk == 12) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 044b438..c15e6af 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -233,4 +233,19 @@ public class GamesTest extends TestCase { String actual = testObject.checkUskZero(); assertEquals(expected, actual); } + + public void test_checkUskSix() { + Games testObject = new Games(); + String expected = "Ratchet & Clank, Atelier Totori Plus, Crash Bandicoot N. Sane Trilogy"; + String actual = testObject.checkUskSix(); + assertEquals(expected, actual); + } + + public void test_checkUskTwelve() { + Games testObject = new Games(); + String expected = "Fire Emblem: Three Houses, Triangle Strategy, Super Smash Bros. Ultimate, Jet Set Radio Future, Persona 3 Portable"; + String actual = testObject.checkUskTwelve(); + assertEquals(expected, actual); + } } + From 1b16fb91f1a15ea5ab94b238e1408da727fa8e7a Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Mon, 14 Feb 2022 00:45:10 +0100 Subject: [PATCH 31/56] Added more additional USK Checkers + Tests --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 58 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 +++++ 2 files changed, 72 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index b8b9f2f..9b602f9 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1411,4 +1411,62 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkUskSixteen() { + String result = ""; + String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + int gameUsk = resultSet.getInt("Game_USK_Rating"); + + if (gameUsk == 16) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkUskEighteen() { + String result = ""; + String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + int gameUsk = resultSet.getInt("Game_USK_Rating"); + + if (gameUsk == 18) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index c15e6af..c5997fb 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -247,5 +247,19 @@ public class GamesTest extends TestCase { String actual = testObject.checkUskTwelve(); assertEquals(expected, actual); } + + public void test_checkUskSixteen() { + Games testObject = new Games(); + String expected = "Persona 5 Royal, Astral Chain, Breakdown, AI: The Somnium Files"; + String actual = testObject.checkUskSixteen(); + assertEquals(expected, actual); + } + + public void test_checkUskEighteen() { + Games testObject = new Games(); + String expected = "Yakuza: Dead Souls"; + String actual = testObject.checkUskEighteen(); + assertEquals(expected, actual); + } } From 41a9f7b5fcf40f459e408d0af483bc3cd9e21d24 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Mon, 14 Feb 2022 00:49:34 +0100 Subject: [PATCH 32/56] Added PEGI Checkers + Tests --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 58 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 +++++ 2 files changed, 72 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 9b602f9..3f5ab62 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1469,4 +1469,62 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkPegiThree() { + String result = ""; + String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + int gamePegi = resultSet.getInt("Game_PEGI_Rating"); + + if (gamePegi == 3) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkPegiSeven() { + String result = ""; + String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + int gamePegi = resultSet.getInt("Game_PEGI_Rating"); + + if (gamePegi == 7) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index c5997fb..887c8b1 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -261,5 +261,19 @@ public class GamesTest extends TestCase { String actual = testObject.checkUskEighteen(); assertEquals(expected, actual); } + + public void test_checkPegiThree() { + Games testObject = new Games(); + String expected = "Ratchet & Clank, Rhythm Paradise, Tomodachi Life, Beautiful Katamari"; + String actual = testObject.checkPegiThree(); + assertEquals(expected, actual); + } + + public void test_checkPegiSeven() { + Games testObject = new Games(); + String expected = "Crash Bandicoot N. Sane Trilogy"; + String actual = testObject.checkPegiSeven(); + assertEquals(expected, actual); + } } From 266f73762592228b5e9c2093637c2e9b87bc0971 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Mon, 14 Feb 2022 00:52:12 +0100 Subject: [PATCH 33/56] Added additional PEGI Checkers + Tests --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 58 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 +++++ 2 files changed, 72 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 3f5ab62..9c4683c 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1527,4 +1527,62 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkPegiTwelve() { + String result = ""; + String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + int gamePegi = resultSet.getInt("Game_PEGI_Rating"); + + if (gamePegi == 12) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkPegiSixteen() { + String result = ""; + String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + int gamePegi = resultSet.getInt("Game_PEGI_Rating"); + + if (gamePegi == 16) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 887c8b1..22bbb76 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -275,5 +275,19 @@ public class GamesTest extends TestCase { String actual = testObject.checkPegiSeven(); assertEquals(expected, actual); } + + public void test_checkPegiTwelve() { + Games testObject = new Games(); + String expected = "Fire Emblem: Three Houses, Triangle Strategy, Super Smash Bros. Ultimate, Persona 3 Portable, Atelier Totori Plus"; + String actual = testObject.checkPegiTwelve(); + assertEquals(expected, actual); + } + + public void test_checkPegiSixteen() { + Games testObject = new Games(); + String expected = "Persona 5 Royal, Astral Chain"; + String actual = testObject.checkPegiSixteen(); + assertEquals(expected, actual); + } } From 1e96bf17371966a7d0287980e915b6ad0abd8fac Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Mon, 14 Feb 2022 00:54:15 +0100 Subject: [PATCH 34/56] Added more additional PEGI Checkers + Tests --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 58 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 +++++ 2 files changed, 72 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 9c4683c..3ecf98a 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1585,4 +1585,62 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkPegiEighteen() { + String result = ""; + String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + int gamePegi = resultSet.getInt("Game_PEGI_Rating"); + + if (gamePegi == 18) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkPegiUnknown() { + String result = ""; + String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + int gamePegi = resultSet.getInt("Game_PEGI_Rating"); + + if (gamePegi == 0) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 22bbb76..5b2603c 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -289,5 +289,19 @@ public class GamesTest extends TestCase { String actual = testObject.checkPegiSixteen(); assertEquals(expected, actual); } + + public void test_checkPegiEighteen() { + Games testObject = new Games(); + String expected = "Yakuza: Dead Souls, Breakdown, AI: The Somnium Files"; + String actual = testObject.checkPegiEighteen(); + assertEquals(expected, actual); + } + + public void test_checkPegiUnknown() { + Games testObject = new Games(); + String expected = "Jet Set Radio Future"; + String actual = testObject.checkPegiUnknown(); + assertEquals(expected, actual); + } } From bb01756f6824cd531f8fc01ed5a913ba4db14d38 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Mon, 14 Feb 2022 00:57:32 +0100 Subject: [PATCH 35/56] Refactored Code and Class --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 22 +++++++++--------- .../de/hs_fulda/ciip/projjpn/GamesTest.java | 23 +++++++++---------- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 3ecf98a..ea9678e 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1324,7 +1324,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkUskZero() { String result = ""; String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; @@ -1353,7 +1353,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkUskSix() { String result = ""; String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; @@ -1382,7 +1382,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkUskTwelve() { String result = ""; String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; @@ -1411,7 +1411,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkUskSixteen() { String result = ""; String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; @@ -1440,7 +1440,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkUskEighteen() { String result = ""; String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; @@ -1469,7 +1469,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkPegiThree() { String result = ""; String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; @@ -1498,7 +1498,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkPegiSeven() { String result = ""; String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; @@ -1527,7 +1527,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkPegiTwelve() { String result = ""; String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; @@ -1556,7 +1556,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkPegiSixteen() { String result = ""; String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; @@ -1585,7 +1585,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkPegiEighteen() { String result = ""; String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; @@ -1614,7 +1614,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkPegiUnknown() { String result = ""; String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 5b2603c..cf601c1 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -226,77 +226,77 @@ public class GamesTest extends TestCase { String actual = testObject.checkOnePlayerOnly(); assertEquals(expected, actual); } - + public void test_checkUskZero() { Games testObject = new Games(); String expected = "Rhythm Paradise, Tomodachi Life, Beautiful Katamari"; String actual = testObject.checkUskZero(); assertEquals(expected, actual); } - + public void test_checkUskSix() { Games testObject = new Games(); String expected = "Ratchet & Clank, Atelier Totori Plus, Crash Bandicoot N. Sane Trilogy"; String actual = testObject.checkUskSix(); assertEquals(expected, actual); } - + public void test_checkUskTwelve() { Games testObject = new Games(); String expected = "Fire Emblem: Three Houses, Triangle Strategy, Super Smash Bros. Ultimate, Jet Set Radio Future, Persona 3 Portable"; String actual = testObject.checkUskTwelve(); assertEquals(expected, actual); } - + public void test_checkUskSixteen() { Games testObject = new Games(); String expected = "Persona 5 Royal, Astral Chain, Breakdown, AI: The Somnium Files"; String actual = testObject.checkUskSixteen(); assertEquals(expected, actual); } - + public void test_checkUskEighteen() { Games testObject = new Games(); String expected = "Yakuza: Dead Souls"; String actual = testObject.checkUskEighteen(); assertEquals(expected, actual); } - + public void test_checkPegiThree() { Games testObject = new Games(); String expected = "Ratchet & Clank, Rhythm Paradise, Tomodachi Life, Beautiful Katamari"; String actual = testObject.checkPegiThree(); assertEquals(expected, actual); } - + public void test_checkPegiSeven() { Games testObject = new Games(); String expected = "Crash Bandicoot N. Sane Trilogy"; String actual = testObject.checkPegiSeven(); assertEquals(expected, actual); } - + public void test_checkPegiTwelve() { Games testObject = new Games(); String expected = "Fire Emblem: Three Houses, Triangle Strategy, Super Smash Bros. Ultimate, Persona 3 Portable, Atelier Totori Plus"; String actual = testObject.checkPegiTwelve(); assertEquals(expected, actual); } - + public void test_checkPegiSixteen() { Games testObject = new Games(); String expected = "Persona 5 Royal, Astral Chain"; String actual = testObject.checkPegiSixteen(); assertEquals(expected, actual); } - + public void test_checkPegiEighteen() { Games testObject = new Games(); String expected = "Yakuza: Dead Souls, Breakdown, AI: The Somnium Files"; String actual = testObject.checkPegiEighteen(); assertEquals(expected, actual); } - + public void test_checkPegiUnknown() { Games testObject = new Games(); String expected = "Jet Set Radio Future"; @@ -304,4 +304,3 @@ public class GamesTest extends TestCase { assertEquals(expected, actual); } } - From 0ec0d840cc4b2d8869ee1e53a4d31e2545b6be2d Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 02:13:39 +0100 Subject: [PATCH 36/56] Added ESRB Checkers + Tests --- projjpn/GamesDB.accdb | Bin 1015808 -> 1015808 bytes projjpn/GamesDB.laccdb | Bin 64 -> 0 bytes .../java/de/hs_fulda/ciip/projjpn/Games.java | 58 ++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 +++++ 4 files changed, 72 insertions(+) diff --git a/projjpn/GamesDB.accdb b/projjpn/GamesDB.accdb index 380bfb7e9108dd721ab2a676ca9268ab7e907647..e67a55652846dc806f2bbac3ea7ba361b11006b5 100644 GIT binary patch delta 134 zcmZo@uxn_r+rY%fq`|UTfbRq2WCcE+CV_1Nj3@Y5dk)C@9h`nvj!}{^uKl?jBM>tI zF*6XeY=17tD!q`0liMfE(T4#D;u)q39AI5FUEu($(Dq#iSRb&puR6{O#2}g-h&h0m V6NtHhm>Y6x057;Jd5NKa@oE3=KfS4VKIe?fG Uh`E568;E&;n0NcC<9uN|0H&ximjD0& diff --git a/projjpn/GamesDB.laccdb b/projjpn/GamesDB.laccdb index 5a03e0388674df9c401c0cef4dc38d6267f63454..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 GIT binary patch literal 0 HcmV?d00001 literal 64 icmZ>94fYQ45771WG4%0wG-gmh1CA-VnRytZ2t@#)Zwp2M diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index ea9678e..626ed15 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1643,4 +1643,62 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkEsrbE() { + String result = ""; + String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameEsrb = resultSet.getString("Game_ESRB_Rating"); + + if (gameEsrb.equals("E")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkEsrbEten() { + String result = ""; + String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameEsrb = resultSet.getString("Game_ESRB_Rating"); + + if (gameEsrb.equals("E10+")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index cf601c1..f6e6b07 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -303,4 +303,18 @@ public class GamesTest extends TestCase { String actual = testObject.checkPegiUnknown(); assertEquals(expected, actual); } + + public void test_checkEsrbE() { + Games testObject = new Games(); + String expected = "Rhythm Paradise, Tomodachi Life, Beautiful Katamari"; + String actual = testObject.checkEsrbE(); + assertEquals(expected, actual); + } + + public void test_checkEsrbEten() { + Games testObject = new Games(); + String expected = "Super Smash Bros. Ultimate, Crash Bandicoot N. Sane Trilogy"; + String actual = testObject.checkEsrbEten(); + assertEquals(expected, actual); + } } From 6573b241f448b8c2be6b43a4d48dfa10c9668c04 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 02:18:35 +0100 Subject: [PATCH 37/56] Added More ESRB Checkers + Tests --- projjpn/GamesDB.laccdb | Bin 0 -> 64 bytes .../java/de/hs_fulda/ciip/projjpn/Games.java | 58 ++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 +++++ 3 files changed, 72 insertions(+) diff --git a/projjpn/GamesDB.laccdb b/projjpn/GamesDB.laccdb index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..5a03e0388674df9c401c0cef4dc38d6267f63454 100644 GIT binary patch literal 64 icmZ>94fYQ45771WG4%0wG-gmh1CA-VnRytZ2t@#)Zwp2M literal 0 HcmV?d00001 diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 626ed15..aef1bee 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1701,4 +1701,62 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkEsrbT() { + String result = ""; + String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameEsrb = resultSet.getString("Game_ESRB_Rating"); + + if (gameEsrb.equals("T")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkEsrbM() { + String result = ""; + String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameEsrb = resultSet.getString("Game_ESRB_Rating"); + + if (gameEsrb.equals("M")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index f6e6b07..5d99438 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -317,4 +317,18 @@ public class GamesTest extends TestCase { String actual = testObject.checkEsrbEten(); assertEquals(expected, actual); } + + public void test_checkEsrbT() { + Games testObject = new Games(); + String expected = "Ratchet & Clank, Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Jet Set Radio Future, Atelier Totori Plus"; + String actual = testObject.checkEsrbT(); + assertEquals(expected, actual); + } + + public void test_checkEsrbM() { + Games testObject = new Games(); + String expected = "Persona 5 Royal, Yakuza: Dead Souls, Breakdown, AI: The Somnium Files, Persona 3 Portable"; + String actual = testObject.checkEsrbM(); + assertEquals(expected, actual); + } } From 95c099f58ec0fe2a8e844226aeeeb4f9e0ccbfa4 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 02:25:15 +0100 Subject: [PATCH 38/56] Added Cero Checker + Test --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 29 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 7 +++++ 2 files changed, 36 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index aef1bee..696a04d 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1759,4 +1759,33 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkCeroA() { + String result = ""; + String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameCero = resultSet.getString("Game_CERO_Rating"); + + if (gameCero.equals("A")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 5d99438..0493bf7 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -331,4 +331,11 @@ public class GamesTest extends TestCase { String actual = testObject.checkEsrbM(); assertEquals(expected, actual); } + + public void test_checkCeroA() { + Games testObject = new Games(); + String expected = "Ratchet & Clank, Rhythm Paradise, Super Smash Bros. Ultimate, Jet Set Radio Future, Tomodachi Life, Beautiful Katamari, Crash Bandicoot N. Sane Trilogy"; + String actual = testObject.checkCeroA(); + assertEquals(expected, actual); + } } From 2de3157157f1b40ad5a31e1d5251c428b75060d1 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 02:27:57 +0100 Subject: [PATCH 39/56] Added Additional Cero Checkers + Tests --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 58 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 +++++ 2 files changed, 72 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 696a04d..6b0e662 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1788,4 +1788,62 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkCeroB() { + String result = ""; + String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameCero = resultSet.getString("Game_CERO_Rating"); + + if (gameCero.equals("B")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkCeroC() { + String result = ""; + String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameCero = resultSet.getString("Game_CERO_Rating"); + + if (gameCero.equals("C")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 0493bf7..f3cc364 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -338,4 +338,18 @@ public class GamesTest extends TestCase { String actual = testObject.checkCeroA(); assertEquals(expected, actual); } + + public void test_checkCeroB() { + Games testObject = new Games(); + String expected = "Fire Emblem: Three Houses, Persona 3 Portable, Atelier Totori Plus"; + String actual = testObject.checkCeroB(); + assertEquals(expected, actual); + } + + public void test_checkCeroC() { + Games testObject = new Games(); + String expected = "Persona 5 Royal, Astral Chain, Triangle Strategy, Breakdown"; + String actual = testObject.checkCeroC(); + assertEquals(expected, actual); + } } From e0be859b40f9c21f4138ac9312e9a29220bac0c4 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 02:31:28 +0100 Subject: [PATCH 40/56] Added More Additional Cero Checkers + Tests --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 58 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 +++++ 2 files changed, 72 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 6b0e662..7425a0f 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1846,4 +1846,62 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkCeroD() { + String result = ""; + String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameCero = resultSet.getString("Game_CERO_Rating"); + + if (gameCero.equals("D")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkCeroZ() { + String result = ""; + String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameCero = resultSet.getString("Game_CERO_Rating"); + + if (gameCero.equals("Z")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index f3cc364..2e7567b 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -352,4 +352,18 @@ public class GamesTest extends TestCase { String actual = testObject.checkCeroC(); assertEquals(expected, actual); } + + public void test_checkCeroD() { + Games testObject = new Games(); + String expected = "Yakuza: Dead Souls"; + String actual = testObject.checkCeroD(); + assertEquals(expected, actual); + } + + public void test_checkCeroZ() { + Games testObject = new Games(); + String expected = "AI: The Somnium Files"; + String actual = testObject.checkCeroZ(); + assertEquals(expected, actual); + } } From 512e9975dd94fa27ba4c3f903e6f81875d75bfd8 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 02:35:44 +0100 Subject: [PATCH 41/56] Added ACB Checker + Test --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 29 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 7 +++++ 2 files changed, 36 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 7425a0f..0c65a33 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1904,4 +1904,33 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkAcbG() { + String result = ""; + String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameAcb = resultSet.getString("Game_ACB_Rating"); + + if (gameAcb.equals("G")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 2e7567b..1afbd9b 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -366,4 +366,11 @@ public class GamesTest extends TestCase { String actual = testObject.checkCeroZ(); assertEquals(expected, actual); } + + public void test_checkAcbG() { + Games testObject = new Games(); + String expected = "Rhythm Paradise, Beautiful Katamari"; + String actual = testObject.checkAcbG(); + assertEquals(expected, actual); + } } From 76e7cc3b9b4176f39f4fdd7bb7ea48d553bdca85 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 02:38:28 +0100 Subject: [PATCH 42/56] Added Additional ACB Checkers + Tests --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 58 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 +++++ 2 files changed, 72 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 0c65a33..931f136 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1933,4 +1933,62 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkAcbPg() { + String result = ""; + String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameAcb = resultSet.getString("Game_ACB_Rating"); + + if (gameAcb.equals("PG")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkAcbM() { + String result = ""; + String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameAcb = resultSet.getString("Game_ACB_Rating"); + + if (gameAcb.equals("M")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 1afbd9b..f6f1436 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -373,4 +373,18 @@ public class GamesTest extends TestCase { String actual = testObject.checkAcbG(); assertEquals(expected, actual); } + + public void test_checkAcbPg() { + Games testObject = new Games(); + String expected = "Ratchet & Clank, Super Smash Bros. Ultimate, Tomodachi Life, Crash Bandicoot N. Sane Trilogy"; + String actual = testObject.checkAcbPg(); + assertEquals(expected, actual); + } + + public void test_checkAcbM() { + Games testObject = new Games(); + String expected = "Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Jet Set Radio Future"; + String actual = testObject.checkAcbM(); + assertEquals(expected, actual); + } } From 793305e873212d9b041b8204577287d3899ccdf4 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 02:40:58 +0100 Subject: [PATCH 43/56] Added More Additional ACB Checkers + Tests --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 58 +++++++++++++++++++ .../de/hs_fulda/ciip/projjpn/GamesTest.java | 14 +++++ 2 files changed, 72 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 931f136..3bfac1f 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1991,4 +1991,62 @@ public class Games { return result.substring(0, result.length() - 2); } + + public String checkAcbMaFifteen() { + String result = ""; + String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameAcb = resultSet.getString("Game_ACB_Rating"); + + if (gameAcb.equals("MA 15+")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } + + public String checkAcbReighteen() { + String result = ""; + String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; + + try { + Connection connection = DriverManager.getConnection(databaseURL); + + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(query); + + while (resultSet.next()) { + String gameName = resultSet.getString("Game_Name"); + String gameAcb = resultSet.getString("Game_ACB_Rating"); + + if (gameAcb.equals("R 18+")) { + result += gameName + ", "; + } + + } + statement.close(); + connection.close(); + + } catch (SQLException e) { + e.printStackTrace(); + } + + return result.substring(0, result.length() - 2); + } } diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index f6f1436..69b923b 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -387,4 +387,18 @@ public class GamesTest extends TestCase { String actual = testObject.checkAcbM(); assertEquals(expected, actual); } + + public void test_checkAcbMaFifteen() { + Games testObject = new Games(); + String expected = "Persona 5 Royal, Yakuza: Dead Souls, Breakdown, AI: The Somnium Files, Persona 3 Portable"; + String actual = testObject.checkAcbMaFifteen(); + assertEquals(expected, actual); + } + + public void test_checkAcbReighteen() { + Games testObject = new Games(); + String expected = "Atelier Totori Plus"; + String actual = testObject.checkAcbReighteen(); + assertEquals(expected, actual); + } } From 7b305d29e97fe59b7d82d35d0afc8b034aa778e1 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 03:19:07 +0100 Subject: [PATCH 44/56] Added Javadoc to Misc Methods --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 42 +++++++++++-------- .../de/hs_fulda/ciip/projjpn/GamesTest.java | 28 ++++++------- 2 files changed, 39 insertions(+), 31 deletions(-) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 3bfac1f..fd677d7 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -8,7 +8,11 @@ import java.sql.Statement; public class Games { private String databaseURL = "jdbc:ucanaccess://GamesDB.accdb"; - + + /** + * Checks if the connection to the database can be established + * @return Returns true if it connects successfully and false if the connection fails. + */ public boolean checkConnection() { try { Connection connection = DriverManager.getConnection(databaseURL); @@ -20,7 +24,11 @@ public class Games { return false; } } - + + /** + * Prints the whole table for those, who cannot access the Database for some reason. + * @return Returns a String of the whole table. + */ public String printTable() { String result = ""; String query = "SELECT * FROM Games"; @@ -93,7 +101,7 @@ public class Games { // The substring removes the last New line in the String. return result.substring(0, result.length() - 1); } - + public String checkGames() { String result = ""; String query = "SELECT Game_Name FROM Games"; @@ -1643,7 +1651,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkEsrbE() { String result = ""; String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; @@ -1672,7 +1680,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkEsrbEten() { String result = ""; String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; @@ -1701,7 +1709,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkEsrbT() { String result = ""; String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; @@ -1730,7 +1738,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkEsrbM() { String result = ""; String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; @@ -1759,7 +1767,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkCeroA() { String result = ""; String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; @@ -1788,7 +1796,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkCeroB() { String result = ""; String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; @@ -1817,7 +1825,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkCeroC() { String result = ""; String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; @@ -1846,7 +1854,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkCeroD() { String result = ""; String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; @@ -1875,7 +1883,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkCeroZ() { String result = ""; String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; @@ -1904,7 +1912,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkAcbG() { String result = ""; String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; @@ -1933,7 +1941,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkAcbPg() { String result = ""; String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; @@ -1962,7 +1970,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkAcbM() { String result = ""; String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; @@ -1991,7 +1999,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkAcbMaFifteen() { String result = ""; String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; @@ -2020,7 +2028,7 @@ public class Games { return result.substring(0, result.length() - 2); } - + public String checkAcbReighteen() { String result = ""; String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java index 69b923b..db015f7 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java @@ -303,98 +303,98 @@ public class GamesTest extends TestCase { String actual = testObject.checkPegiUnknown(); assertEquals(expected, actual); } - + public void test_checkEsrbE() { Games testObject = new Games(); String expected = "Rhythm Paradise, Tomodachi Life, Beautiful Katamari"; String actual = testObject.checkEsrbE(); assertEquals(expected, actual); } - + public void test_checkEsrbEten() { Games testObject = new Games(); String expected = "Super Smash Bros. Ultimate, Crash Bandicoot N. Sane Trilogy"; String actual = testObject.checkEsrbEten(); assertEquals(expected, actual); } - + public void test_checkEsrbT() { Games testObject = new Games(); String expected = "Ratchet & Clank, Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Jet Set Radio Future, Atelier Totori Plus"; String actual = testObject.checkEsrbT(); assertEquals(expected, actual); } - + public void test_checkEsrbM() { Games testObject = new Games(); String expected = "Persona 5 Royal, Yakuza: Dead Souls, Breakdown, AI: The Somnium Files, Persona 3 Portable"; String actual = testObject.checkEsrbM(); assertEquals(expected, actual); } - + public void test_checkCeroA() { Games testObject = new Games(); String expected = "Ratchet & Clank, Rhythm Paradise, Super Smash Bros. Ultimate, Jet Set Radio Future, Tomodachi Life, Beautiful Katamari, Crash Bandicoot N. Sane Trilogy"; String actual = testObject.checkCeroA(); assertEquals(expected, actual); } - + public void test_checkCeroB() { Games testObject = new Games(); String expected = "Fire Emblem: Three Houses, Persona 3 Portable, Atelier Totori Plus"; String actual = testObject.checkCeroB(); assertEquals(expected, actual); } - + public void test_checkCeroC() { Games testObject = new Games(); String expected = "Persona 5 Royal, Astral Chain, Triangle Strategy, Breakdown"; String actual = testObject.checkCeroC(); assertEquals(expected, actual); } - + public void test_checkCeroD() { Games testObject = new Games(); String expected = "Yakuza: Dead Souls"; String actual = testObject.checkCeroD(); assertEquals(expected, actual); } - + public void test_checkCeroZ() { Games testObject = new Games(); String expected = "AI: The Somnium Files"; String actual = testObject.checkCeroZ(); assertEquals(expected, actual); } - + public void test_checkAcbG() { Games testObject = new Games(); String expected = "Rhythm Paradise, Beautiful Katamari"; String actual = testObject.checkAcbG(); assertEquals(expected, actual); } - + public void test_checkAcbPg() { Games testObject = new Games(); String expected = "Ratchet & Clank, Super Smash Bros. Ultimate, Tomodachi Life, Crash Bandicoot N. Sane Trilogy"; String actual = testObject.checkAcbPg(); assertEquals(expected, actual); } - + public void test_checkAcbM() { Games testObject = new Games(); String expected = "Astral Chain, Fire Emblem: Three Houses, Triangle Strategy, Jet Set Radio Future"; String actual = testObject.checkAcbM(); assertEquals(expected, actual); } - + public void test_checkAcbMaFifteen() { Games testObject = new Games(); String expected = "Persona 5 Royal, Yakuza: Dead Souls, Breakdown, AI: The Somnium Files, Persona 3 Portable"; String actual = testObject.checkAcbMaFifteen(); assertEquals(expected, actual); } - + public void test_checkAcbReighteen() { Games testObject = new Games(); String expected = "Atelier Totori Plus"; From b3620280273172bb9325e6dc50fa0aed466fd62c Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 03:33:41 +0100 Subject: [PATCH 45/56] Added Javadoc to Console Category Methods --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 49 +++++++++++++++++-- 1 file changed, 44 insertions(+), 5 deletions(-) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index fd677d7..05f3b92 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -8,10 +8,12 @@ import java.sql.Statement; public class Games { private String databaseURL = "jdbc:ucanaccess://GamesDB.accdb"; - + /** * Checks if the connection to the database can be established - * @return Returns true if it connects successfully and false if the connection fails. + * + * @return Returns true if it connects successfully and false if the connection + * fails. */ public boolean checkConnection() { try { @@ -24,9 +26,11 @@ public class Games { return false; } } - + /** - * Prints the whole table for those, who cannot access the Database for some reason. + * Prints the whole table for those, who cannot access the Database for some + * reason. + * * @return Returns a String of the whole table. */ public String printTable() { @@ -101,7 +105,12 @@ public class Games { // The substring removes the last New line in the String. return result.substring(0, result.length() - 1); } - + + /** + * Prints out all game names from the table. + * + * @return Returns a String with the game names + */ public String checkGames() { String result = ""; String query = "SELECT Game_Name FROM Games"; @@ -128,6 +137,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Prints out all of the consoles which are represented in the table. + * + * @return Returns a String with the consoles. + */ public String checkConsoles() { String result = ""; String query = "SELECT Game_Console FROM Games"; @@ -458,6 +472,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Prints out all of the games which are on a PlayStation console. + * + * @return Returns a String with the games from a PlayStation console. + */ public String checkConsolePlayStation() { String result = ""; String query = "SELECT Game_Name, Game_Console FROM Games"; @@ -490,6 +509,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Prints out all of the games which are on a Nintendo console. + * + * @return Returns a String with the games from a Nintendo console. + */ public String checkConsoleNintendo() { String result = ""; String query = "SELECT Game_Name, Game_Console FROM Games"; @@ -522,6 +546,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Prints out all of the games which are on a Xbox console. + * + * @return Returns a String with the games from a Xbox console. + */ public String checkConsoleXbox() { String result = ""; String query = "SELECT Game_Name, Game_Console FROM Games"; @@ -554,6 +583,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Prints out all of the games which are multiplatform. + * + * @return Returns a String with the multiplatform games . + */ public String checkConsoleMultiplatform() { String result = ""; String query = "SELECT Game_Name, Game_Console FROM Games"; @@ -586,6 +620,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Prints out all of the games which are on a Nintendo Switch. + * + * @return Returns a String with the games from a Nintendo Switch. + */ public String checkConsoleNintendoSwitch() { String result = ""; String query = "SELECT Game_Name, Game_Console FROM Games"; From f4f76e0c0b30fd110bc95afe8ddcdf3f29fbf2bf Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 03:56:15 +0100 Subject: [PATCH 46/56] Added Javadoc to Publisher Category Methods --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 42 ++++++++++++++++--- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 05f3b92..96ad914 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -191,6 +191,10 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game has the same publishers across Europe, Japan and North America + * @return Prints the games, that have the same publishers. + */ public String checkAllSamePublishers() { String result = ""; String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -222,7 +226,11 @@ public class Games { return result.substring(0, result.length() - 2); } - + + /** + * Checks if the game has not the same publishers across Europe, Japan and North America + * @return Prints the games, that do not have the same publishers. + */ public String checkAllDifferentPublishers() { String result = ""; String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -728,6 +736,10 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game has the publisher Nintendo across Europe, Japan and North America + * @return Prints the games, that have Nintendo as a publisher. + */ public String checkPublisherNintendo() { String result = ""; String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -761,6 +773,10 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game has the publisher Sega across Europe, Japan and North America + * @return Prints the games, that have Sega as a publisher. + */ public String checkPublisherSega() { String result = ""; String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -793,7 +809,11 @@ public class Games { return result.substring(0, result.length() - 2); } - + + /** + * Checks the publishers that are available in the table across Europe, Japan and North America + * @return Prints the publishers from Europe, Japan and North America. + */ public String checkPublishers() { String result = ""; String query = "SELECT Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -972,7 +992,11 @@ public class Games { return result.substring(0, result.length() - 2); } - + + /** + * Checks the publishers that are available in the table across Europe + * @return Prints the publishers from Europe. + */ public String checkPublishersEu() { String result = ""; String query = "SELECT Game_Publisher_EU FROM Games"; @@ -1015,7 +1039,11 @@ public class Games { return result.substring(0, result.length() - 2); } - + + /** + * Checks the publishers that are available in the table across Japan + * @return Prints the publishers from Japan. + */ public String checkPublishersJp() { String result = ""; String query = "SELECT Game_Publisher_JP FROM Games"; @@ -1064,7 +1092,11 @@ public class Games { return result.substring(0, result.length() - 2); } - + + /** + * Checks the publishers that are available in the table across North America + * @return Prints the publishers from North America. + */ public String checkPublishersNa() { String result = ""; String query = "SELECT Game_Publisher_NA FROM Games"; From 01a2deab538abb60fc7a792230f668fe8c7b829d Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 04:00:33 +0100 Subject: [PATCH 47/56] Added Javadoc to Developer Category Methods --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 50 +++++++++++++++---- 1 file changed, 40 insertions(+), 10 deletions(-) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 96ad914..38b747b 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -192,7 +192,9 @@ public class Games { } /** - * Checks if the game has the same publishers across Europe, Japan and North America + * Checks if the game has the same publishers across Europe, Japan and North + * America + * * @return Prints the games, that have the same publishers. */ public String checkAllSamePublishers() { @@ -226,9 +228,11 @@ public class Games { return result.substring(0, result.length() - 2); } - + /** - * Checks if the game has not the same publishers across Europe, Japan and North America + * Checks if the game has not the same publishers across Europe, Japan and North + * America + * * @return Prints the games, that do not have the same publishers. */ public String checkAllDifferentPublishers() { @@ -263,6 +267,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the developers and the publishers are all the same. + * + * @return Prints the games, where publishers and developers are the same. + */ public String checkAllDifferentPublishersDeveloper() { String result = ""; String query = "SELECT Game_Name, Game_Developer, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; @@ -663,6 +672,12 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the developer of the game is Atlus. + * + * @return Prints the games developed by Atlus. + */ + public String checkDeveloperAtlus() { String result = ""; String query = "SELECT Game_Name, Game_Developer FROM Games"; @@ -693,6 +708,12 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks the developers that are available in the table. + * + * @return Prints the developers from the table. + */ + public String checkDevelopers() { String result = ""; String query = "SELECT Game_Developer FROM Games"; @@ -737,7 +758,9 @@ public class Games { } /** - * Checks if the game has the publisher Nintendo across Europe, Japan and North America + * Checks if the game has the publisher Nintendo across Europe, Japan and North + * America + * * @return Prints the games, that have Nintendo as a publisher. */ public String checkPublisherNintendo() { @@ -774,7 +797,9 @@ public class Games { } /** - * Checks if the game has the publisher Sega across Europe, Japan and North America + * Checks if the game has the publisher Sega across Europe, Japan and North + * America + * * @return Prints the games, that have Sega as a publisher. */ public String checkPublisherSega() { @@ -809,9 +834,11 @@ public class Games { return result.substring(0, result.length() - 2); } - + /** - * Checks the publishers that are available in the table across Europe, Japan and North America + * Checks the publishers that are available in the table across Europe, Japan + * and North America + * * @return Prints the publishers from Europe, Japan and North America. */ public String checkPublishers() { @@ -992,9 +1019,10 @@ public class Games { return result.substring(0, result.length() - 2); } - + /** * Checks the publishers that are available in the table across Europe + * * @return Prints the publishers from Europe. */ public String checkPublishersEu() { @@ -1039,9 +1067,10 @@ public class Games { return result.substring(0, result.length() - 2); } - + /** * Checks the publishers that are available in the table across Japan + * * @return Prints the publishers from Japan. */ public String checkPublishersJp() { @@ -1092,9 +1121,10 @@ public class Games { return result.substring(0, result.length() - 2); } - + /** * Checks the publishers that are available in the table across North America + * * @return Prints the publishers from North America. */ public String checkPublishersNa() { From 54028aec7349ba04db6faafb83f29d685a6c91a4 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 04:05:58 +0100 Subject: [PATCH 48/56] Added Javadoc to Release Date Category Methods --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 38b747b..6f9df1f 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -306,6 +306,12 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the release dates are all the same across Europe, Japan, North + * America and Australia. + * + * @return Prints the games which have the same release dates. + */ public String checkAllSameReleaseDates() { String result = ""; String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; @@ -347,6 +353,12 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the release dates are not all the same across Europe, Japan, North + * America and Australia. + * + * @return Prints the games which do not have the same release dates. + */ public String checkAllDifferentReleaseDates() { String result = ""; String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; @@ -1176,6 +1188,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks the release dates that are unknown. + * + * @return Prints the games which do not have a release date. + */ public String checkReleaseDateUnknown() { String result = ""; String query = "SELECT Game_Name, Game_Release_AU FROM Games"; @@ -1206,6 +1223,12 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the release years are all the same across Europe, Japan, North + * America and Australia. + * + * @return Prints the games which have the same release year. + */ public String checkAllSameReleaseYear() { String result = ""; String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; @@ -1247,6 +1270,12 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the release year are not all the same across Europe, Japan, North + * America and Australia. + * + * @return Prints the games which do not have the same release year. + */ public String checkAllDifferentReleaseYear() { String result = ""; String query = "SELECT Game_Name, Game_Release_EU, Game_Release_JP, Game_Release_NA, Game_Release_AU FROM Games"; From 62a52549c468261ffe7cd694bc38af6386946a04 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 04:09:07 +0100 Subject: [PATCH 49/56] Added Javadoc to Game Genre Category Methods --- .../main/java/de/hs_fulda/ciip/projjpn/Games.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 6f9df1f..1dc1f93 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -400,6 +400,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks the game genres that are available in the table + * + * @return Prints all the available game genres from the table. + */ public String checkGameGenres() { String result = ""; String query = "SELECT Game_Genre FROM Games"; @@ -443,6 +448,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the games genre is Action-Adventure + * + * @return Prints all the Action-Adventure games. + */ public String checkGameGenreActionAdventure() { String result = ""; String query = "SELECT Game_Name, Game_Genre FROM Games"; @@ -472,6 +482,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the games genre is RPG + * + * @return Prints all the RPG games. + */ public String checkGameGenreRPG() { String result = ""; String query = "SELECT Game_Name, Game_Genre FROM Games"; From 33bdfd87d0375681112cd4f8399423f9487b22c4 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 04:11:59 +0100 Subject: [PATCH 50/56] Added Javadoc to USK Category Methods --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 1dc1f93..e80aba5 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1478,6 +1478,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is USK 0 + * + * @return Prints all the USK 0 games. + */ public String checkUskZero() { String result = ""; String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; @@ -1507,6 +1512,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is USK 6 + * + * @return Prints all the USK 6 games. + */ public String checkUskSix() { String result = ""; String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; @@ -1536,6 +1546,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is USK 12 + * + * @return Prints all the USK 12 games. + */ public String checkUskTwelve() { String result = ""; String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; @@ -1565,6 +1580,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is USK 16 + * + * @return Prints all the USK 16 games. + */ public String checkUskSixteen() { String result = ""; String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; @@ -1594,6 +1614,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is USK 18 + * + * @return Prints all the USK 18 games. + */ public String checkUskEighteen() { String result = ""; String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; From 7b30007fcd4dd62c38d151ec51f5ea9681bf9769 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 04:13:42 +0100 Subject: [PATCH 51/56] Added Javadoc to PEGI Category Methods --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index e80aba5..9e8a0dd 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1648,6 +1648,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is PEGI 3. + * + * @return Prints all the PEGI 3 games. + */ public String checkPegiThree() { String result = ""; String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; @@ -1677,6 +1682,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is PEGI 7. + * + * @return Prints all the PEGI 7 games. + */ public String checkPegiSeven() { String result = ""; String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; @@ -1706,6 +1716,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is PEGI 12. + * + * @return Prints all the PEGI 12 games. + */ public String checkPegiTwelve() { String result = ""; String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; @@ -1735,6 +1750,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is PEGI 16. + * + * @return Prints all the PEGI 16 games. + */ public String checkPegiSixteen() { String result = ""; String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; @@ -1764,6 +1784,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is PEGI 18. + * + * @return Prints all the PEGI 18 games. + */ public String checkPegiEighteen() { String result = ""; String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; From caf99c8fea1d915757fe3eaf7e87ff9b5096fc2e Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 04:15:58 +0100 Subject: [PATCH 52/56] Added Javadoc to ESRB Category Methods + Fixed PEGI Javadoc --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 9e8a0dd..f0b095e 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1818,6 +1818,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game has no PEGI rating. + * + * @return Prints all the games without a PEGI rating. + */ public String checkPegiUnknown() { String result = ""; String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; @@ -1847,6 +1852,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is ESRB E. + * + * @return Prints all the ESRB E games. + */ public String checkEsrbE() { String result = ""; String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; @@ -1876,6 +1886,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is ESRB E10+. + * + * @return Prints all the ESRB E10+ games. + */ public String checkEsrbEten() { String result = ""; String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; @@ -1905,6 +1920,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is ESRB T. + * + * @return Prints all the ESRB T games. + */ public String checkEsrbT() { String result = ""; String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; @@ -1934,6 +1954,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is ESRB M. + * + * @return Prints all the ESRB M games. + */ public String checkEsrbM() { String result = ""; String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; From b1f560051d24517fe738186adee39351c03114e4 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 04:18:05 +0100 Subject: [PATCH 53/56] Added Javadoc to CERO Category Methods --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index f0b095e..635649d 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1988,6 +1988,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is CERO A. + * + * @return Prints all the CERO A games. + */ public String checkCeroA() { String result = ""; String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; @@ -2017,6 +2022,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is CERO B. + * + * @return Prints all the CERO B games. + */ public String checkCeroB() { String result = ""; String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; @@ -2046,6 +2056,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is CERO C. + * + * @return Prints all the CERO C games. + */ public String checkCeroC() { String result = ""; String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; @@ -2075,6 +2090,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is CERO D. + * + * @return Prints all the CERO D games. + */ public String checkCeroD() { String result = ""; String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; @@ -2104,6 +2124,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is CERO Z. + * + * @return Prints all the CERO Z games. + */ public String checkCeroZ() { String result = ""; String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; From bb4d54da8283c2ef6af774350b33b47d97f1d877 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 04:20:18 +0100 Subject: [PATCH 54/56] Added Javadoc to ACB Category Methods --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 635649d..6198ab1 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -2158,6 +2158,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is ACB G. + * + * @return Prints all the ACB G games. + */ public String checkAcbG() { String result = ""; String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; @@ -2187,6 +2192,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is ACB PG. + * + * @return Prints all the ACB PG games. + */ public String checkAcbPg() { String result = ""; String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; @@ -2216,6 +2226,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is ACB M. + * + * @return Prints all the ACB M games. + */ public String checkAcbM() { String result = ""; String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; @@ -2245,6 +2260,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is ACB MA 15+. + * + * @return Prints all the ACB MA 15+ games. + */ public String checkAcbMaFifteen() { String result = ""; String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; @@ -2274,6 +2294,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is ACB R 18+. + * + * @return Prints all the ACB R 18+ games. + */ public String checkAcbReighteen() { String result = ""; String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; From 22482c59ff09677ed22c1d9a25697b16c52b48c6 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 04:23:56 +0100 Subject: [PATCH 55/56] Added Javadoc to Players Category Methods --- .../java/de/hs_fulda/ciip/projjpn/Games.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 6198ab1..e48823a 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -1332,6 +1332,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is compatible with one player or more. + * + * @return Prints out the games that can be played with one or more players. + */ public String checkOnePlayer() { String result = ""; String query = "SELECT Game_Name, Game_Players FROM Games"; @@ -1362,6 +1367,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is compatible with two players or more. + * + * @return Prints out the games that can be played with two or more players. + */ public String checkTwoPlayer() { String result = ""; String query = "SELECT Game_Name, Game_Players FROM Games"; @@ -1391,6 +1401,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is compatible with four players or more. + * + * @return Prints out the games that can be played with four or more players. + */ public String checkFourPlayer() { String result = ""; String query = "SELECT Game_Name, Game_Players FROM Games"; @@ -1420,6 +1435,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is compatible with eight players + * + * @return Prints out the games that can be played with eight players. + */ public String checkEightPlayer() { String result = ""; String query = "SELECT Game_Name, Game_Players FROM Games"; @@ -1449,6 +1469,11 @@ public class Games { return result.substring(0, result.length() - 2); } + /** + * Checks if the game is compatible with one player only. + * + * @return Prints out the games that can only be played alone. + */ public String checkOnePlayerOnly() { String result = ""; String query = "SELECT Game_Name, Game_Players FROM Games"; From 3511885503e57a6d55ed63b26197cc12c03f9a7f Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 23:13:39 +0100 Subject: [PATCH 56/56] Fixed Print Method and Added Column Names --- projjpn/GamesDB.accdb | Bin 1015808 -> 1015808 bytes projjpn/GamesDB.laccdb | Bin 64 -> 0 bytes .../java/de/hs_fulda/ciip/projjpn/Games.java | 13 +++++++------ 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 projjpn/GamesDB.laccdb diff --git a/projjpn/GamesDB.accdb b/projjpn/GamesDB.accdb index e67a55652846dc806f2bbac3ea7ba361b11006b5..1e9a2f9bfa7f641ec006b9f3b5d523ef0ace780c 100644 GIT binary patch delta 134 zcmZo@uxn_r+rY%fWX`f#fbRq2WCcE+CV_1Nj3@Y5@75oG_;mVNIYvpw)b{6cj6lo; z#LPgtI zF*6XeY=17tD!q`0liMfE(T4#D;u)q39AMqE{l)>-OKcN2@U^cx&I-hAK+F!r96-zo U#9Tnk4a7V^%)5QnalWt}0L%e0_5c6? diff --git a/projjpn/GamesDB.laccdb b/projjpn/GamesDB.laccdb deleted file mode 100644 index 5a03e0388674df9c401c0cef4dc38d6267f63454..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 64 icmZ>94fYQ45771WG4%0wG-gmh1CA-VnRytZ2t@#)Zwp2M diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index e48823a..994a3c0 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java @@ -42,15 +42,16 @@ public class Games { Statement statement = connection.createStatement(); ResultSet resultSet = statement.executeQuery(query); + result += "Name, Console, Developer, Publisher EU, Publisher JP, Publisher NA, Genre, Release EU, Release JP, Release NA, Release AU, USK Rating, PEGI Rating, ESRB Rating, CERO Rating, ACB Rating, Players\n\n"; + while (resultSet.next()) { - int id = resultSet.getInt("Game_ID"); String gameName = resultSet.getString("Game_Name"); String gameConsole = resultSet.getString("Game_Console"); String gameDeveloper = resultSet.getString("Game_Developer"); - String gamePublisherEu = resultSet.getString("Game_Developer"); - String gamePublisherJp = resultSet.getString("Game_Console"); - String gamePublisherNa = resultSet.getString("Game_Console"); + String gamePublisherEu = resultSet.getString("Game_Publisher_EU"); + String gamePublisherJp = resultSet.getString("Game_Publisher_JP"); + String gamePublisherNa = resultSet.getString("Game_Publisher_NA"); String gameGenre = resultSet.getString("Game_Genre"); String gameReleaseEu = resultSet.getString("Game_Release_EU"); @@ -81,13 +82,13 @@ public class Games { String gamePlayers = resultSet.getString("Game_Players"); if (gamePegi != 0) { - result += id + ": " + gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu + result += gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu + ", " + gamePublisherJp + ", " + gamePublisherNa + ", " + gameGenre + ", " + gameReleaseEuDots + ", " + gameReleaseJpDots + ", " + gameReleaseNaDots + ", " + gameReleaseAuDots + ", " + gameUsk + ", " + gamePegi + ", " + gameEsrb + ", " + gameCero + ", " + gameAcb + ", " + gamePlayers + "\n"; } else { - result += id + ": " + gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu + result += gameName + ", " + gameConsole + ", " + gameDeveloper + ", " + gamePublisherEu + ", " + gamePublisherJp + ", " + gamePublisherNa + ", " + gameGenre + ", " + gameReleaseEuDots + ", " + gameReleaseJpDots + ", " + gameReleaseNaDots + ", " + gameReleaseAuDots + ", " + gameUsk + ", Unknown, " + gameEsrb + ", " + gameCero + ", "