From d61547585059700a61b570d38436f6091043e892 Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Fri, 10 Jan 2020 08:12:43 -0700 Subject: [PATCH] Various fixups Signed-off-by: Taylor Smock --- .../josm/plugins/mapwithai/MapWithAIPreferences.java | 2 +- .../mapwithai/backend/MapWithAIRemoteControlTest.java | 2 +- .../plugins/mapwithai/commands/MapWithAIAddComandTest.java | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/MapWithAIPreferences.java b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/MapWithAIPreferences.java index ba66f17..9a7f087 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/mapwithai/MapWithAIPreferences.java +++ b/src/main/java/org/openstreetmap/josm/plugins/mapwithai/MapWithAIPreferences.java @@ -306,7 +306,7 @@ public class MapWithAIPreferences implements SubPreferenceSetting { * @return A scroll pane with sources */ public JScrollPane legalInformation(JPanel pane) { - GBC line = GBC.eol().fill(GBC.HORIZONTAL); + GBC line = GBC.eol().fill(GridBagConstraints.HORIZONTAL); JPanel termsOfUse = new JPanel(new GridBagLayout()); termsOfUse.add(new JLabel(tr("Server Terms Of Use")), line); DataAvailability.getTermsOfUse().stream().map(MapWithAIPreferences::convertUrlToTextWithAction) diff --git a/test/unit/org/openstreetmap/josm/plugins/mapwithai/backend/MapWithAIRemoteControlTest.java b/test/unit/org/openstreetmap/josm/plugins/mapwithai/backend/MapWithAIRemoteControlTest.java index d349570..63b5f51 100644 --- a/test/unit/org/openstreetmap/josm/plugins/mapwithai/backend/MapWithAIRemoteControlTest.java +++ b/test/unit/org/openstreetmap/josm/plugins/mapwithai/backend/MapWithAIRemoteControlTest.java @@ -74,7 +74,7 @@ public class MapWithAIRemoteControlTest { /** * Unit test for bad request - invalid URL. - * + * * @throws Exception if any error occurs */ @Test diff --git a/test/unit/org/openstreetmap/josm/plugins/mapwithai/commands/MapWithAIAddComandTest.java b/test/unit/org/openstreetmap/josm/plugins/mapwithai/commands/MapWithAIAddComandTest.java index df6960c..929a14b 100644 --- a/test/unit/org/openstreetmap/josm/plugins/mapwithai/commands/MapWithAIAddComandTest.java +++ b/test/unit/org/openstreetmap/josm/plugins/mapwithai/commands/MapWithAIAddComandTest.java @@ -18,7 +18,7 @@ import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.openstreetmap.josm.TestUtils; -import org.openstreetmap.josm.actions.SaveAction; +import org.openstreetmap.josm.actions.SaveActionBase; import org.openstreetmap.josm.command.MoveCommand; import org.openstreetmap.josm.data.UndoRedoHandler; import org.openstreetmap.josm.data.coor.LatLon; @@ -252,7 +252,7 @@ public class MapWithAIAddComandTest { test.endTest(); assertTrue(test.getErrors().isEmpty()); - SaveAction.doSave(layer, new File("post_command1.osm"), false); + SaveActionBase.doSave(layer, new File("post_command1.osm"), false); connectionsCommand.undoCommand(); connectionsCommand = new MapWithAIAddCommand(ds, osmData, ds.allPrimitives()); @@ -261,7 +261,7 @@ public class MapWithAIAddComandTest { test.visit(osmData.allPrimitives()); test.endTest(); assertTrue(test.getErrors().isEmpty()); - SaveAction.doSave(layer, new File("post_command2.osm"), false); + SaveActionBase.doSave(layer, new File("post_command2.osm"), false); } }