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.
124 lines
4.8 KiB
124 lines
4.8 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_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);
|
|
}
|
|
}
|