[java] Making Java tests compile until we find a better alternative
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.google.gson.JsonPrimitive;
-import org.junit.jupiter.api.Test;
+
import org.junit.jupiter.api.Tag;
+import org.junit.jupiter.api.Test;
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.Cookie;
import org.openqa.selenium.ImmutableCapabilities;
@@ -355,6 +356,7 @@ public void convertsToJsonMethodResultToPrimitiveIfItIsNotJson() {
assertThat(json).isEqualTo("gnu/linux");
}
+ @SuppressWarnings("DoNotCall")
private void verifyStackTraceInJson(String json, StackTraceElement[] stackTrace) {
int posOfLastStackTraceElement = 0;
for (StackTraceElement e : stackTrace) {
@@ -723,6 +725,31 @@ private String convert(Object toConvert) {
}
}
+ public enum State {
+
+ GOOD,
+ BAD,
+ INDIFFERENT
+ }
+
+ public enum WithMethods {
+
+ CHEESE() {
+ @Override
+ public void eat(String foodStuff) {
+ // Does nothing
+ }
+ },
+ EGGS() {
+ @Override
+ public void eat(String foodStuff) {
+ // Does nothing too
+ }
+ };
+
+ public abstract void eat(String foodStuff);
+ }
+
@SuppressWarnings("unused")
private static class SimpleBean {
@@ -765,31 +792,6 @@ public double getNumber() {
}
}
- public enum State {
-
- GOOD,
- BAD,
- INDIFFERENT
- }
-
- public enum WithMethods {
-
- CHEESE() {
- @Override
- public void eat(String foodStuff) {
- // Does nothing
- }
- },
- EGGS() {
- @Override
- public void eat(String foodStuff) {
- // Does nothing too
- }
- };
-
- public abstract void eat(String foodStuff);
- }
-
public class JsonAware {
private String convertedValue;
