We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53236c3 commit 7c0156aCopy full SHA for 7c0156a
src/test/java/mypackage/CalculatorTest.java
@@ -0,0 +1,26 @@
1
+package mypackage;
2
+
3
+import org.junit.Test;
4
+import static org.hamcrest.CoreMatchers.is;
5
+import static org.junit.Assert.assertThat;
6
7
+public class CalculatorTest {
8
+ @Test
9
+ public void twoAndThreeIsFive() throws Exception {
10
+ final long result = new Calculator().addFucn(2, 3);
11
+ assertThat(result, is(5L));
12
+ }
13
14
15
+ public void threeMinusTwoIsOne() throws Exception {
16
+ final long result = new Calculator().subFucn(2, 3);
17
+ assertThat(result, is(1L));
18
19
20
21
+ public void threeXThreeIsNine() throws Exception {
22
+ final long result = new Calculator().mulFucn(3, 3);
23
+ assertThat(result, is(9L));
24
25
26
+}
0 commit comments