Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rultor 19 #153

Merged
merged 3 commits into from
Apr 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .rultor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
docker:
image: yegor256/rultor-image:1.13.0
image: yegor256/rultor-image:1.19.0
assets:
settings.xml: yegor256/home#assets/jcabi/settings.xml
secring.gpg: yegor256/home#assets/secring.gpg
Expand Down
4 changes: 4 additions & 0 deletions src/test/java/com/jcabi/log/TextDecorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
*/
package com.jcabi.log;

import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.Collection;
import java.util.Formattable;
Expand All @@ -37,6 +38,7 @@
import org.apache.commons.lang3.StringUtils;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
Expand All @@ -53,6 +55,7 @@ public final class TextDecorTest {
@MethodSource("params")
public void testPrintsRight(final String obj, final String text,
final int flags, final int width, final int precision) {
Assumptions.assumeTrue("UTF-8".equals(Charset.defaultCharset().name()));
Locale.setDefault(Locale.US);
MatcherAssert.assertThat(
new Printed(new TextDecor(obj), flags, width, precision),
Expand All @@ -64,6 +67,7 @@ public void testPrintsRight(final String obj, final String text,
@MethodSource("params")
public void testLogsRight(final String obj, final String text,
final int flags, final int width, final int precision) {
Assumptions.assumeTrue("UTF-8".equals(Charset.defaultCharset().name()));
Locale.setDefault(Locale.US);
MatcherAssert.assertThat(
new Logged(new TextDecor(obj), flags, width, precision),
Expand Down