Skip to content

Commit

Permalink
(#1443) Remove redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed May 1, 2021
1 parent b926999 commit 200fd11
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions src/test/java/org/cactoos/io/InputOfTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,15 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.concurrent.atomic.AtomicBoolean;
import org.cactoos.Text;
import org.cactoos.bytes.BytesOf;
import org.cactoos.text.TextOf;
import org.hamcrest.core.AllOf;
import org.hamcrest.core.IsEqual;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
import org.llorllale.cactoos.matchers.Assertion;
import org.llorllale.cactoos.matchers.EndsWith;
import org.llorllale.cactoos.matchers.HasContent;
import org.llorllale.cactoos.matchers.HasString;
import org.llorllale.cactoos.matchers.IsText;
import org.llorllale.cactoos.matchers.IsTrue;
import org.llorllale.cactoos.matchers.MatchesRegex;
import org.llorllale.cactoos.matchers.StartsWith;
import org.llorllale.cactoos.matchers.Verifies;
import org.takes.facets.fork.FkRegex;
import org.takes.facets.fork.TkFork;
import org.llorllale.cactoos.matchers.*;
import org.takes.http.FtRemote;
import org.takes.tk.TkHtml;
import org.takes.tk.TkText;

/**
* Test case for {@link InputOf}.
Expand Down Expand Up @@ -321,16 +309,4 @@ void makesDataAvailable() throws Exception {
).affirm();
}

@Test
void readsUrlContent() throws Exception {
final Text data = new TextOf("hello");
new FtRemote(new TkFork(new FkRegex("/", new TkText(data.asString())))).exec(
uri -> new Assertion<>(
"Must read bytes from HTTPS URL",
new TextOf(new InputOf(uri)),
new IsText(data)
).affirm()
);
}

}

0 comments on commit 200fd11

Please sign in to comment.