Skip to content

Commit

Permalink
(#1022) Use Randomized instead of RandomText in TempFolder and its tests
Browse files Browse the repository at this point in the history
  • Loading branch information
igor committed Feb 8, 2019
1 parent b41e086 commit 66a9e1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/cactoos/io/TempFolder.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import org.cactoos.scalar.IoCheckedScalar;
import org.cactoos.scalar.StickyScalar;
import org.cactoos.text.JoinedText;
import org.cactoos.text.RandomText;
import org.cactoos.text.Randomized;
import org.cactoos.text.TextOf;

/**
Expand Down Expand Up @@ -62,7 +62,7 @@ public TempFolder() {
new JoinedText(
new TextOf(""),
new TextOf("tmp"),
new RandomText(
new Randomized(
// @checkstyle MagicNumber (1 line)
5,
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/cactoos/io/TempFolderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
package org.cactoos.io;

import java.io.File;
import org.cactoos.text.RandomText;
import org.cactoos.text.Randomized;
import org.junit.Test;
import org.llorllale.cactoos.matchers.Assertion;
import org.llorllale.cactoos.matchers.IsTrue;
Expand Down Expand Up @@ -52,7 +52,7 @@ public void createsDirectory() {
@Test
public void deletesDirectory() throws Exception {
final TempFolder dir = new TempFolder(
new RandomText('d', 'e', 'g').asString()
new Randomized('d', 'e', 'g').asString()
);
dir.close();
new Assertion<>(
Expand Down

0 comments on commit 66a9e1f

Please sign in to comment.