forked from adem.berber/projjpn
Jenkins
3 years ago
3 changed files with 2760 additions and 0 deletions
-
BINprojjpn/GamesDB.accdb
-
2356projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java
-
404projjpn/src/test/java/de/hs_fulda/ciip/projjpn/GamesTest.java
2356
projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,404 @@ |
|||
package de.hs_fulda.ciip.projjpn; |
|||
|
|||
import junit.framework.TestCase; |
|||
|
|||
public class GamesTest extends TestCase { |
|||
public void test_checkConnection() { |
|||
Games testObject = new Games(); |
|||
boolean expected = true; |
|||
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(); |
|||
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"; |
|||
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"; |
|||
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"; |
|||
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"; |
|||
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"; |
|||
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"; |
|||
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"; |
|||
String actual = testObject.checkAcbReighteen(); |
|||
assertEquals(expected, actual); |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue