My favorites
▼
|
Sign in
chuidiang-ejemplos
Ejemplos de www.chuidiang.com
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
tags
/
ejemplo-junit-3.8.1
/
src
/
test
/
java
/
com
/
chuidiang
/
ejemplos
/
junit38
/
TestSuma.java
‹r52
r94
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
package com.chuidiang.ejemplos.junit38;
import com.chuidiang.ejemplos.Suma;
import junit.framework.TestCase;
public class TestSuma extends TestCase {
private Suma suma;
@Override
protected void setUp() throws Exception {
super.setUp();
suma = new Suma();
}
@Override
protected void tearDown() throws Exception {
super.tearDown();
// Fin de test. Aqui liberar recursos o borrar rastros del test
}
public void testGetSuma() {
assertEquals("Test suma", 2.0, suma.getSuma(1.0, 1.0), 1e-6);
}
public void testIncrementa() {
assertEquals("Test incrementa", 2.0, suma.incrementa(1.0), 1e-6);
}
}
Show details
Hide details
Change log
r53
by chuidiang on May 7, 2009
Diff
Version con junit 3.8.1
Go to:
/tags/ejemplo-junit-3.8.1
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: 721 bytes, 31 lines
View raw file
Powered by
Google Project Hosting