import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class MyLibraryTest {
@Test
public void testAdd() {
MyLibrary myLibrary = new MyLibrary();
int result = myLibrary.add(5, 10);
assertEquals(15, result);
}
}
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.osgi.test.junit4.runner.OsgiJUnitRunner;
@RunWith(OsgiJUnitRunner.class)
public class MyLibraryTest {
@Test
public void testAdd() {
MyLibrary myLibrary = new MyLibrary();
int result = myLibrary.add(5, 10);
assertEquals(15, result);
}
}