Skip to content

Commit 318d079

Browse files
amilabanukamaibin
authored andcommitted
BAEL-281: Static Analysis tools with Eclipse (eugenp#2298)
1 parent 7d36972 commit 318d079

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.baeldung.pmd;
2+
3+
import static org.junit.Assert.assertEquals;
4+
5+
import org.junit.Test;
6+
7+
public class CntTest {
8+
9+
private Cnt service;
10+
11+
@Test
12+
public void whenSecondParamIsZeroShouldReturnIntMax(){
13+
service = new Cnt();
14+
int answer = service.d(100,0);
15+
assertEquals(Integer.MAX_VALUE, answer);
16+
}
17+
}

0 commit comments

Comments
 (0)