Files
java-tutorials/static-analysis/src/test/java/com/baeldung/pmd/CntUnitTest.java
T
Maiklins 621491f8db Merge pull request #9 from eugenp/master
update with origin
2019-09-09 10:57:44 +02:00

18 lines
345 B
Java

package com.baeldung.pmd;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class CntUnitTest {
private Cnt service;
@Test
public void whenSecondParamIsZeroShouldReturnIntMax(){
service = new Cnt();
int answer = service.d(100,0);
assertEquals(Integer.MAX_VALUE, answer);
}
}