Skip to content

Commit

Permalink
#2978 enabled tests for dataized logs
Browse files Browse the repository at this point in the history
  • Loading branch information
c71n93 committed May 7, 2024
1 parent 19897d1 commit 3cfb4c1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions eo-runtime/src/test/java/org/eolang/DataizedTest.java
Expand Up @@ -33,20 +33,16 @@
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

/**
* Test case for {@link Dataized}.
*
* @since 0.22
* @todo #2931:30min Enable the disabled tests. The tests were disabled after \rho attribute
* became immutable. Need to find out what's going on and resolve the tests.
*/
final class DataizedTest {

@Test
@Disabled
void logsCorrectly() {
final Logger log = Logger.getLogger("logsCorrectly");
final Level before = log.getLevel();
Expand All @@ -68,7 +64,6 @@ void logsCorrectly() {
}

@Test
@Disabled
void logsWhenException() {
final Logger log = Logger.getLogger("logsWhenException");
final Level before = log.getLevel();
Expand All @@ -79,7 +74,7 @@ void logsWhenException() {
final Phi wrong = new PhIncorrect(Phi.);
IntStream.range(0, 5).forEach(
i -> Assertions.assertThrows(
IllegalStateException.class,
ExFailure.class,
() -> new Dataized(wrong).take(),
AtCompositeTest.TO_ADD_MESSAGE
)
Expand Down

0 comments on commit 3cfb4c1

Please sign in to comment.