My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
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
package com.chuidiang.ejemplos.junit38;

import com.chuidiang.ejemplos.Resta;

import junit.framework.TestCase;

public class TestResta extends TestCase {
private Resta resta;

@Override
protected void setUp() throws Exception {
super.setUp();
resta = new Resta();
}

@Override
protected void tearDown() throws Exception {
super.tearDown();
}

public void testDecrementa() {
assertEquals("Test decrementa", 1.0, resta.decrementa(2.0), 1e-6);
}

public void testGetDiferencia() {
assertEquals("Test resta", 1.0, resta.getDiferencia(2.0, 1.0), 1e-6);
}

}

Change log

r53 by chuidiang on May 7, 2009   Diff
Version con junit 3.8.1
Go to: 
Project members, sign in to write a code review

Older revisions

r52 by chuidiang on May 7, 2009   Diff
Version con junit 3.8.1
All revisions of this file

File info

Size: 667 bytes, 29 lines
Powered by Google Project Hosting