Skip to content

Commit

Permalink
Enable jsondata tests
Browse files Browse the repository at this point in the history
  • Loading branch information
warunalakshitha committed Nov 19, 2024
1 parent b23664b commit 2b53793
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ public function testSendingMap() returns error? {
common:assertJsonPayload(resp.getJsonPayload(), {sam: 50, jhon: 60});
}

@test:Config {
enable: false
}
@test:Config {}
public function testSendingMapArray() returns error? {
map<json> jj = {sam: {hello: "world"}, jhon: {no: 56}};
map<json>[] val = [jj, jj];
Expand All @@ -104,9 +102,7 @@ public function testSendingTable() returns error? {
]);
}

@test:Config {
enable: false
}
@test:Config {}
public function testSendingTableArray() returns error? {
CustomerTable customerTab = table [
{id: 13, fname: "Dan", lname: "Bing"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -680,9 +680,7 @@ public function testReturnMapOfJson() returns error? {
}
}

@test:Config {
enable: false
}
@test:Config {}
public function testReturnMapOfJsonArr() returns error? {
http:Response|error resp = resourceReturnTestClient->get("/mytest/test22");
if resp is http:Response {
Expand All @@ -697,9 +695,7 @@ public function testReturnMapOfJsonArr() returns error? {
}
}

@test:Config {
enable: false
}
@test:Config {}
public function testReturnTableArr() returns error? {
http:Response|error resp = resourceReturnTestClient->get("/mytest/test23");
if resp is http:Response {
Expand All @@ -720,9 +716,7 @@ public function testReturnTableArr() returns error? {
}
}

@test:Config {
enable: false
}
@test:Config {}
public function testReturnXmlArr() returns error? {
http:Response|error resp = resourceReturnTestClient->get("/mytest/test24");
if resp is http:Response {
Expand All @@ -734,9 +728,7 @@ public function testReturnXmlArr() returns error? {
}
}

@test:Config {
enable: false
}
@test:Config {}
public function testReturnMapOfXml() returns error? {
http:Response|error resp = resourceReturnTestClient->get("/mytest/test25");
if resp is http:Response {
Expand Down

0 comments on commit 2b53793

Please sign in to comment.