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.

50 lines
876 B

package de.hs_fulda.ciip.hello_world;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest extends TestCase {
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest(String testName) {
super(testName);
}
/**
* @return the suite of tests being tested
*/
public static Test suite() {
return new TestSuite(AppTest.class);
}
/**
* Rigourous Test :-)
*/
public void testApp() {
assertTrue(true);
}
public void testFullName() {
// Arrange
String expected = "Maxim Volkov";
String firstName = "Maxim";
String lastName = "Volkov";
// Act
App m = new App();
m.setFirstName(firstName);
m.setLastName(lastName);
String actual = m.getFullName();
// Assert
assertEquals(expected, actual);
}
}