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.
18 lines
631 B
18 lines
631 B
package de.hs_fulda.ciip.projjpn;
|
|
import junit.framework.TestCase;
|
|
|
|
public class GamesTest extends TestCase {
|
|
public void test_checkForConnection() {
|
|
Games testObject = new Games();
|
|
boolean expected = true;
|
|
boolean actual = testObject.checkForConnection();
|
|
assertEquals(expected, actual);
|
|
}
|
|
|
|
public void test_checkForConsoles() {
|
|
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.checkForConsoles();
|
|
assertEquals(expected, actual);
|
|
}
|
|
}
|