Skip to content

Commit

Permalink
Merge branch 'update_benchmarks' of github.com:sanctuuary/RestAPE int…
Browse files Browse the repository at this point in the history
…o update_benchmarks
  • Loading branch information
vedran-kasalica committed Dec 16, 2024
2 parents 5dce109 + f604f7c commit 422bf57
Showing 1 changed file with 48 additions and 48 deletions.
96 changes: 48 additions & 48 deletions src/test/java/nl/esciencecenter/PubmetricBenchmarksTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,58 +24,58 @@ public class PubmetricBenchmarksTest {
// assertFalse(response.isEmpty());
// }

@Test
public void testSendPostToPubmetricWithString() throws IOException {
// Hardcoded CWL content string
String cwlFileContent = """
# WorkflowNo_3
# This workflow is generated by APE (https://github.com/sanctuuary/APE).
cwlVersion: v1.2
class: Workflow
// @Test
// public void testSendPostToPubmetricWithString() throws IOException {
// // Hardcoded CWL content string
// String cwlFileContent = """
// # WorkflowNo_3
// # This workflow is generated by APE (https://github.com/sanctuuary/APE).
// cwlVersion: v1.2
// class: Workflow

label: WorkflowNo_3
doc: A workflow including the tool(s) Comet, idconvert, ProteinProphet.
// label: WorkflowNo_3
// doc: A workflow including the tool(s) Comet, idconvert, ProteinProphet.

inputs:
input_1:
type: File
format: "http://edamontology.org/format_3244" # mzML
input_2:
type: File
format: "http://edamontology.org/format_1929" # FASTA
steps:
Comet_01:
run: https://raw.githubusercontent.com/Workflomics/containers/main/cwl/tools/Comet/Comet.cwl
in:
Comet_in_1: input_1
Comet_in_2: input_2
out: [Comet_out_1, Comet_out_2, Comet_out_3]
idconvert_02:
run: https://raw.githubusercontent.com/Workflomics/containers/main/cwl/tools/idconvert/idconvert_to_pepXML.cwl
in:
idconvert_in_1: Comet_01/Comet_out_2
out: [idconvert_out_1]
ProteinProphet_03:
run: https://raw.githubusercontent.com/Workflomics/containers/main/cwl/tools/ProteinProphet/ProteinProphet.cwl
in:
ProteinProphet_in_1: idconvert_02/idconvert_out_1
ProteinProphet_in_2: input_2
out: [ProteinProphet_out_1, ProteinProphet_out_2]
outputs:
output_1:
type: File
format: "http://edamontology.org/format_3747" # protXML
outputSource: ProteinProphet_03/ProteinProphet_out_1
// inputs:
// input_1:
// type: File
// format: "http://edamontology.org/format_3244" # mzML
// input_2:
// type: File
// format: "http://edamontology.org/format_1929" # FASTA
// steps:
// Comet_01:
// run: https://raw.githubusercontent.com/Workflomics/containers/main/cwl/tools/Comet/Comet.cwl
// in:
// Comet_in_1: input_1
// Comet_in_2: input_2
// out: [Comet_out_1, Comet_out_2, Comet_out_3]
// idconvert_02:
// run: https://raw.githubusercontent.com/Workflomics/containers/main/cwl/tools/idconvert/idconvert_to_pepXML.cwl
// in:
// idconvert_in_1: Comet_01/Comet_out_2
// out: [idconvert_out_1]
// ProteinProphet_03:
// run: https://raw.githubusercontent.com/Workflomics/containers/main/cwl/tools/ProteinProphet/ProteinProphet.cwl
// in:
// ProteinProphet_in_1: idconvert_02/idconvert_out_1
// ProteinProphet_in_2: input_2
// out: [ProteinProphet_out_1, ProteinProphet_out_2]
// outputs:
// output_1:
// type: File
// format: "http://edamontology.org/format_3747" # protXML
// outputSource: ProteinProphet_03/ProteinProphet_out_1

""";
// """;

// Convert the string to a byte array
byte[] cwlFileBytes = cwlFileContent.getBytes();
// // Convert the string to a byte array
// byte[] cwlFileBytes = cwlFileContent.getBytes();

// Call the method to test
JSONObject response = ToolBenchmarkingAPIs.sendPostToPubmetric(cwlFileBytes);
// // Call the method to test
// JSONObject response = ToolBenchmarkingAPIs.sendPostToPubmetric(cwlFileBytes);

// Verify that the response is not null
assertFalse(response.isEmpty());
}
// // Verify that the response is not null
// assertFalse(response.isEmpty());
// }
}

0 comments on commit 422bf57

Please sign in to comment.