Jak się robi Test Suity ze Springiem Junit 5?

0

W pakiecie suites niby zrobiłem tak jak wyczytałem, ale przy odpalaniu testów projektu odpalają się testy pojedyncze + te suity, które są puste.

https://gitlab.com/namingexception/training-suite-tests/-/tree/master/kafka-tolowercase-spring/kafka-tolowercase-spring-core/src/test/java/com/kafkatolowercasespring

package com.kafkatolowercasespring.suites;

import com.kafkatolowercasespring.utils.CommonUtilsTest;
import com.kafkatolowercasespring.utils.SerializerTest;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;

@RunWith(Suite.class)
@Suite.SuiteClasses({
        CommonUtilsTest.class,
        SerializerTest.class
})
public class UnitTestSuite {
}

hm... to nie jest przypadkiem implementacja dla Junit 4?

0

import org.junit.
Junit 4

Tak. Wygląda jak coś z 4. Zobacz może https://junit.org/junit5/docs/current/user-guide/#running-tests-junit-platform-runner-test-suite

1 użytkowników online, w tym zalogowanych: 0, gości: 1