You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

180 lines
7.4 KiB

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);
}
}