Skip to content

Commit

Permalink
Revert "SoftAssertions Implementation (microsoft#1340)"
Browse files Browse the repository at this point in the history
This reverts commit 632fba5.
  • Loading branch information
yury-s committed Aug 17, 2023
1 parent 632fba5 commit aed4ce0
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 324 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions playwright/src/test/java/com/microsoft/playwright/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonParser;
import com.microsoft.playwright.assertions.SoftAssertions;

import java.io.*;
import java.lang.reflect.Field;
import java.net.ServerSocket;
import java.nio.file.Files;
import java.nio.file.Path;
Expand Down Expand Up @@ -216,16 +214,4 @@ static String generateDifferentOriginHostname(final Server server){
static String generateDifferentOriginPort(final Server server){
return server.PREFIX.replace(String.valueOf(server.PORT), String.valueOf(server.PORT+1));
}

static void assertFailureCount(SoftAssertions softAssertions, int expectedCount) {
try {
Class<? extends SoftAssertions> clazz = softAssertions.getClass();
Field resultsField = clazz.getDeclaredField("results");
resultsField.setAccessible(true);
List<Throwable> results = (List<Throwable>) resultsField.get(softAssertions);
assertEquals(results.size(), expectedCount);
} catch (NoSuchFieldException | IllegalAccessException e) {
throw new RuntimeException(e);
}
}
}

0 comments on commit aed4ce0

Please sign in to comment.