Skip to content

Commit

Permalink
Fix java.awt unnacessable from junit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
turchenkoalex committed Jun 6, 2024
1 parent d6cc9e7 commit 5ca510c
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import com.google.gson.internal.ConstructorConstructor;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.awt.Point;
import java.io.File;
import java.io.IOException;
import java.io.Reader;
Expand All @@ -39,6 +38,16 @@ public void close() throws IOException {
}
}

private static class Point {
private int x;
private int y;

public Point(int x, int y) {
this.x = x;
this.y = y;
}
}

@Test
public void testBlockInaccessibleJava() {
Gson gson = new GsonBuilder()
Expand Down

0 comments on commit 5ca510c

Please sign in to comment.