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 9fb5454
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 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
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ stdlibMimeVersion=2.10.2-20241119-174300-e60e412
stdlibCacheVersion=3.8.1-20241113-125700-b75a1bf

stdlibAuthVersion=2.12.1-20241113-162300-ded40eb
stdlibDataJsonDataVersion=0.3.0-20241114-143900-285d739
stdlibDataJsonDataVersion=0.3.0-20241119-191600-348e6c9
stdlibJwtVersion=2.13.1-20241113-162400-b59ccfa
stdlibOAuth2Version=2.12.1-20241113-162400-4c6ddfe

Expand Down

0 comments on commit 9fb5454

Please sign in to comment.