Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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