-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestHesapla.java
66 lines (46 loc) · 1.13 KB
/
TestHesapla.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package test;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import main.Hesapla;
public class TestHesapla {
@BeforeClass
public static void setUpBeforeClass() throws Exception {
}
@AfterClass
public static void tearDownAfterClass() throws Exception {
}
@Before // Test metotlarindan ONCE
public void setUp() throws Exception {
System.out.println("Test islemi baslatiliyor");
}
@After // Test metotlarindan SONRA
public void tearDown() throws Exception {
System.out.println("Test islemi sona ermistir");
}
@Test
public void test01() {
fail("Not yet implemented");
}
@Test
public void test02() {
fail("Not yet implemented");
}
@Test
public void test03() {
fail("Not yet implemented");
}
public static double hsp Hesapla;
public TestHesapla(){
hsp = new Hesapla();
}
@Test
public void testtopla(){
double sonuc = hsp.topla(80, 39);
Assert.assertEquals(119.0, sonuc);
}
}