use of com.b2international.snowowl.core.api.IBranchPath in project snow-owl by b2ihealthcare.
the class SnomedBranchingApiTest method createChildBranchWithMetadata.
@Test
public void createChildBranchWithMetadata() {
IBranchPath a = BranchPathUtils.createPath(branchPath, "a");
branching.createBranch(a, ImmutableMap.of("key", "value")).statusCode(201);
branching.getBranch(a).statusCode(200).body("metadata.key", equalTo("value"));
}
use of com.b2international.snowowl.core.api.IBranchPath in project snow-owl by b2ihealthcare.
the class SnomedBranchingApiTest method createChildBranch.
@Test
public void createChildBranch() {
IBranchPath a = BranchPathUtils.createPath(branchPath, "a");
branching.createBranch(a).statusCode(201);
branching.getBranch(a).statusCode(200);
}
use of com.b2international.snowowl.core.api.IBranchPath in project snow-owl by b2ihealthcare.
the class SnomedBranchingApiTest method getChildren.
@Test
public void getChildren() {
IBranchPath a = createPath(branchPath, "a");
IBranchPath b = createPath(a, "b");
branching.createBranchRecursively(b);
branching.getAllBranches().statusCode(200).body("items.name", hasItem(a.lastSegment())).body("items.name", hasItem(b.lastSegment()));
branching.getBranchChildren(branchPath).statusCode(200).body("items.name", hasItem(a.lastSegment())).body("items.name", hasItem(b.lastSegment()));
}
use of com.b2international.snowowl.core.api.IBranchPath in project snow-owl by b2ihealthcare.
the class SnomedBranchingApiTest method deleteBranchRecursively.
@Test
public void deleteBranchRecursively() {
IBranchPath a = createPath(branchPath, "a");
IBranchPath b = createPath(a, "b");
branching.createBranchRecursively(b);
branching.getBranch(b).statusCode(200);
branching.getBranch(a).statusCode(200);
branching.deleteBranch(a).statusCode(204);
branching.getBranch(a).statusCode(200).body("deleted", equalTo(true));
branching.getBranch(b).statusCode(200).body("deleted", equalTo(true));
}
use of com.b2international.snowowl.core.api.IBranchPath in project snow-owl by b2ihealthcare.
the class SnomedBranchingApiTest method deleteChildBranch.
@Test
public void deleteChildBranch() {
IBranchPath a = BranchPathUtils.createPath(branchPath, "a");
branching.createBranch(a).statusCode(201);
branching.deleteBranch(a).statusCode(204);
branching.getBranch(a).statusCode(200).body("deleted", equalTo(true));
}
Aggregations