mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
Add automation for starred.
This commit is contained in:
parent
44bb67936b
commit
c5009e8a07
@ -26,6 +26,7 @@ import java.util.stream.Stream;
|
|||||||
|
|
||||||
import org.springframework.web.client.RestClientException;
|
import org.springframework.web.client.RestClientException;
|
||||||
|
|
||||||
|
import static com.wisemapping.test.rest.RestHelper.createHeaders;
|
||||||
import static org.testng.Assert.*;
|
import static org.testng.Assert.*;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -223,11 +224,11 @@ public class RestMindmapITCase {
|
|||||||
template.put(resourceUrl, updateEntity);
|
template.put(resourceUrl, updateEntity);
|
||||||
|
|
||||||
// Has been updated ?.
|
// Has been updated ?.
|
||||||
final String mapId = mapUri.getPath().replace("/service/maps/", "");
|
|
||||||
Optional<RestMindmapInfo> mindmapInfo = fetchMap(requestHeaders, template, mapId);
|
|
||||||
|
|
||||||
// @todo: Enforce check...
|
final HttpEntity findLabelEntity = new HttpEntity(createHeaders(MediaType.TEXT_PLAIN));
|
||||||
assertTrue(mindmapInfo.get().getStarred() == true);
|
final ResponseEntity<String> response = template.exchange(resourceUrl, HttpMethod.GET, findLabelEntity, String.class);
|
||||||
|
|
||||||
|
assertTrue(Boolean.parseBoolean(response.getBody()), "Starred has been updated");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(dataProviderClass = RestHelper.class, dataProvider = "ContentType-Provider-Function")
|
@Test(dataProviderClass = RestHelper.class, dataProvider = "ContentType-Provider-Function")
|
||||||
|
Loading…
Reference in New Issue
Block a user