Skip to content

Commit

Permalink
[SYNCOPE-1768] Removing test file output
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgrosso committed Jun 29, 2023
1 parent f1d09fa commit cdf0da1
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
import java.io.ByteArrayOutputStream;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
import java.util.List;
import java.util.stream.Collectors;
import org.apache.commons.io.IOUtils;
Expand Down Expand Up @@ -58,9 +55,6 @@ public void issueSYNCOPE1128() throws Exception {
String exported = baos.toString(Charset.defaultCharset());
assertTrue(StringUtils.isNotBlank(exported));

Files.writeString(
Path.of("/tmp/caz.xml"), exported, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING);

List<String> realms = IOUtils.readLines(
IOUtils.toInputStream(exported, StandardCharsets.UTF_8), StandardCharsets.UTF_8.name()).stream().
filter(row -> row.trim().startsWith("<Realm")).collect(Collectors.toList());
Expand Down

0 comments on commit cdf0da1

Please sign in to comment.