|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- package Praktikum03;
-
- import org.junit.jupiter.api.Test;
-
- import static org.junit.jupiter.api.Assertions.*;
-
- class ZahlenfilterTest {
-
- @Test
- void filter() {
- }
-
- @Test
- void checkDivisibleBy5() {
- int i = 15;
-
- boolean result = Zahlenfilter.checkDivisibleBy5(i);
-
- assertTrue(result);
- }
-
- @Test
- void checkNotDivisibleBy5() {
- int i = 12;
-
- boolean result = Zahlenfilter.checkDivisibleBy5(i);
-
- assertFalse(result);
- }
-
- @Test
- void checkEndsWith9() {
- int i = 29;
-
- boolean result = Zahlenfilter.checkEndsWith9(i);
-
- assertTrue(result);
- }
-
- @Test
- void checkEndsNotWith9() {
- int i = 28;
-
- boolean result = Zahlenfilter.checkEndsWith9(i);
-
- assertFalse(result);
- }
-
- @Test
- void checkSumDivisibleBy3() {
- int i = 5;
-
- boolean result = Zahlenfilter.checkSumDivisibleBy3(i, i-1);
-
- assertTrue(result);
- }
-
- @Test
- void checkSumNotDivisibleBy3() {
- int i = 3;
-
- boolean result = Zahlenfilter.checkSumDivisibleBy3(i, i-1);
-
- assertFalse(result);
- }
- }
|