Skip to content

Commit

Permalink
Revert "Doh"
Browse files Browse the repository at this point in the history
This reverts commit 55d5313.
  • Loading branch information
Stephan202 committed Oct 28, 2023
1 parent 20d71f5 commit 046a401
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions integration-tests/checkstyle-10.12.4-expected-changes.patch
Original file line number Diff line number Diff line change
Expand Up @@ -50200,7 +50200,7 @@

private static final String TEST_FILE_NAME = "InputMainFrame.java";
private static final String NON_EXISTENT_FILE_NAME = "non-existent.file";
@@ -59,12 +59,12 @@ public class MainFrameTest extends AbstractGuiTestSupport {
@@ -59,17 +59,17 @@ public class MainFrameTest extends AbstractGuiTestSupport {
}

@BeforeEach
Expand All @@ -50212,10 +50212,7 @@
@AfterEach
- public void tearDown() {
+ void tearDown() {
// Avoid an NPE when testing with `-Djava.awt.headless=true`.
// XXX: File a PR for this upstream.
if (mainFrame != null) {
@@ -73,7 +73,7 @@ public class MainFrameTest extends AbstractGuiTestSupport {
Arrays.stream(mainFrame.getOwnedWindows()).forEach(Window::dispose);
}

@Test
Expand All @@ -50224,7 +50221,7 @@
mainFrame.openFile(new File(getPath(TEST_FILE_NAME)));
assertWithMessage("Unexpected frame title")
.that(mainFrame.getTitle())
@@ -87,7 +87,7 @@ public class MainFrameTest extends AbstractGuiTestSupport {
@@ -83,7 +83,7 @@ public class MainFrameTest extends AbstractGuiTestSupport {
* @throws IOException if I/O exception occurs while forming the path.
*/
@Test
Expand All @@ -50233,7 +50230,7 @@
final File file = new File(getPath(NON_EXISTENT_FILE_NAME));
try (MockedStatic<JOptionPane> optionPane = mockStatic(JOptionPane.class)) {
mainFrame.openFile(file);
@@ -103,7 +103,7 @@ public class MainFrameTest extends AbstractGuiTestSupport {
@@ -99,7 +99,7 @@ public class MainFrameTest extends AbstractGuiTestSupport {
}

@Test
Expand All @@ -50242,7 +50239,7 @@
final JComboBox<MainFrameModel.ParseMode> modesCombobox =
findComponentByName(mainFrame, "modesCombobox");
modesCombobox.setSelectedIndex(MainFrameModel.ParseMode.JAVA_WITH_COMMENTS.ordinal());
@@ -121,7 +121,7 @@ public class MainFrameTest extends AbstractGuiTestSupport {
@@ -117,7 +117,7 @@ public class MainFrameTest extends AbstractGuiTestSupport {
* @throws IOException if I/O exception occurs while forming the path.
*/
@Test
Expand All @@ -50251,7 +50248,7 @@
final JButton openFileButton = findComponentByName(mainFrame, "openFileButton");
final File testFile = new File(getPath(TEST_FILE_NAME));
try (MockedConstruction<JFileChooser> mocked =
@@ -143,7 +143,7 @@ public class MainFrameTest extends AbstractGuiTestSupport {
@@ -139,7 +139,7 @@ public class MainFrameTest extends AbstractGuiTestSupport {
* JFileChooser} is mocked to obtain an instance of {@code JavaFileFilter} class.
*/
@Test
Expand All @@ -50260,7 +50257,7 @@
final JButton openFileButton = findComponentByName(mainFrame, "openFileButton");
try (MockedConstruction<JFileChooser> mocked =
mockConstruction(
@@ -166,7 +166,7 @@ public class MainFrameTest extends AbstractGuiTestSupport {
@@ -162,7 +162,7 @@ public class MainFrameTest extends AbstractGuiTestSupport {
}

@Test
Expand All @@ -50269,7 +50266,7 @@
final JButton expandButton = findComponentByName(mainFrame, "expandButton");
final JTextArea xpathTextArea = findComponentByName(mainFrame, "xpathTextArea");
expandButton.doClick();
@@ -180,7 +180,7 @@ public class MainFrameTest extends AbstractGuiTestSupport {
@@ -176,7 +176,7 @@ public class MainFrameTest extends AbstractGuiTestSupport {
}

@Test
Expand Down

0 comments on commit 046a401

Please sign in to comment.