22 lines
419 B
Java
22 lines
419 B
Java
package com.gitlesson.demolibrary;
|
|
|
|
import static org.junit.Assert.assertEquals;
|
|
|
|
import org.junit.Test;
|
|
|
|
/**
|
|
* Unit test for simple App.
|
|
*/
|
|
public class AppTest {
|
|
private String ExpectedString = "Hello from library!";
|
|
|
|
/**
|
|
* Rigorous Test :-)
|
|
*/
|
|
@Test
|
|
public void shouldAnswerWithTrue() {
|
|
String result = TestLibrary.getText();
|
|
assertEquals(ExpectedString, result);
|
|
}
|
|
}
|