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.
75 lines
2.8 KiB
75 lines
2.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);
|
|
}
|
|
}
|