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.

54 lines
2.0 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);
}
}