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.
39 lines
1.5 KiB
39 lines
1.5 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);
|
|
}
|
|
}
|