use of com.formkiq.stacks.client.models.Sites in project formkiq-core by formkiq.
the class SitesRequestTest method testSites01.
/**
* Test GET /version.
*
* @throws Exception Exception
*/
@Test(timeout = TEST_TIMEOUT)
public void testSites01() throws Exception {
// given
AuthenticationResultType token = login(USER_EMAIL, USER_PASSWORD);
putParameter("/formkiq/" + getAppenvironment() + "/maildomain", "tryformkiq.com");
FormKiqClientV1 client = createHttpClient(token);
// when
Sites sites = client.getSites();
// then
assertEquals(1, sites.sites().size());
assertNotNull(sites.sites().get(0).siteId());
assertTrue(sites.sites().get(0).uploadEmail().endsWith("@tryformkiq.com"));
}
Aggregations