initial import of project

This commit is contained in:
Juraj Michalek committed 2014-04-10 19:40:37 +02:00
1 parent e935e81271
commit 704f165b38
21 files changed
+436

No files matched your search

@@ -0,0 +1,19 @@
public class Calculator {
/** Internal counter */
private int counter;
Calculator() {
counter = 0;
}
public int getCounter() {
return counter;
}
void add(int i) {
counter += i;
}
}
@@ -0,0 +1,13 @@
import org.testng.Assert;
import org.testng.annotations.Test;
public class TestCalculator {
@Test
public void testAdd() {
Calculator calc = new Calculator();
calc.add(1);
Assert.assertEquals(calc.getCounter(), 1);
}
}