Skip to content

Commit

Permalink
Refactor Java remote API hierarchy (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-adam authored Jan 25, 2023
1 parent 12bf0c0 commit de25d36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/org/labkey/trialshare/TrialShareController.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public TrialShareController()
example usage (via LabKey Remote Java API):
PostCommand pc = new PostCommand("pipeline","TrialShareExport");
SimplePostCommand pc = new SimplePostCommand("pipeline","TrialShareExport");
JSONObject jo = new JSONObject();
pc.setJsonObject(jo);
CommandResponse cr = pc.execute(cn, "/Studies/ITN027AIOPR/Study Data/");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.labkey.remoteapi.Command;
import org.labkey.remoteapi.Connection;
import org.labkey.remoteapi.PostCommand;
import org.labkey.remoteapi.SimplePostCommand;
import org.labkey.test.BaseWebDriverTest;
import org.labkey.test.WebTestHelper;
import org.labkey.test.categories.Git;
Expand Down Expand Up @@ -40,7 +39,7 @@ public void testTrialShareExportActionDefault() throws Exception
_containerHelper.createSubfolder(getProjectName(), subfolder);

Connection connection = WebTestHelper.getRemoteApiConnection();
Command command = new PostCommand("trialShare", "trialShareExport");
SimplePostCommand command = new SimplePostCommand("trialShare", "trialShareExport");
command.execute(connection, getProjectName() + "/" + subfolder);

goToModule("FileContent");
Expand All @@ -57,7 +56,7 @@ public void testTrialShareExportActionCustom() throws Exception
_containerHelper.createSubfolder(getProjectName(), subfolder);

Connection connection = WebTestHelper.getRemoteApiConnection();
Command command = new PostCommand("trialShare", "trialShareExport");
SimplePostCommand command = new SimplePostCommand("trialShare", "trialShareExport");
Map<String, Object> params = new HashMap<>();
params.put("webpartPropertiesAndLayout", true); // Add one custom data type to override default
command.setParameters(params);
Expand Down

0 comments on commit de25d36

Please sign in to comment.