kopia lustrzana https://github.com/JOSM/MapWithAI
rodzic
fc98ca9747
commit
d615475850
|
@ -306,7 +306,7 @@ public class MapWithAIPreferences implements SubPreferenceSetting {
|
||||||
* @return A scroll pane with sources
|
* @return A scroll pane with sources
|
||||||
*/
|
*/
|
||||||
public JScrollPane legalInformation(JPanel pane) {
|
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());
|
JPanel termsOfUse = new JPanel(new GridBagLayout());
|
||||||
termsOfUse.add(new JLabel(tr("Server Terms Of Use")), line);
|
termsOfUse.add(new JLabel(tr("Server Terms Of Use")), line);
|
||||||
DataAvailability.getTermsOfUse().stream().map(MapWithAIPreferences::convertUrlToTextWithAction)
|
DataAvailability.getTermsOfUse().stream().map(MapWithAIPreferences::convertUrlToTextWithAction)
|
||||||
|
|
|
@ -74,7 +74,7 @@ public class MapWithAIRemoteControlTest {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unit test for bad request - invalid URL.
|
* Unit test for bad request - invalid URL.
|
||||||
*
|
*
|
||||||
* @throws Exception if any error occurs
|
* @throws Exception if any error occurs
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -18,7 +18,7 @@ import org.junit.Before;
|
||||||
import org.junit.Rule;
|
import org.junit.Rule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.openstreetmap.josm.TestUtils;
|
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.command.MoveCommand;
|
||||||
import org.openstreetmap.josm.data.UndoRedoHandler;
|
import org.openstreetmap.josm.data.UndoRedoHandler;
|
||||||
import org.openstreetmap.josm.data.coor.LatLon;
|
import org.openstreetmap.josm.data.coor.LatLon;
|
||||||
|
@ -252,7 +252,7 @@ public class MapWithAIAddComandTest {
|
||||||
test.endTest();
|
test.endTest();
|
||||||
assertTrue(test.getErrors().isEmpty());
|
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.undoCommand();
|
||||||
|
|
||||||
connectionsCommand = new MapWithAIAddCommand(ds, osmData, ds.allPrimitives());
|
connectionsCommand = new MapWithAIAddCommand(ds, osmData, ds.allPrimitives());
|
||||||
|
@ -261,7 +261,7 @@ public class MapWithAIAddComandTest {
|
||||||
test.visit(osmData.allPrimitives());
|
test.visit(osmData.allPrimitives());
|
||||||
test.endTest();
|
test.endTest();
|
||||||
assertTrue(test.getErrors().isEmpty());
|
assertTrue(test.getErrors().isEmpty());
|
||||||
SaveAction.doSave(layer, new File("post_command2.osm"), false);
|
SaveActionBase.doSave(layer, new File("post_command2.osm"), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue