use of com.qlangtech.tis.manage.common.RepositoryException in project tis by qlangtech.
the class TestGetAppConfigBySnid method testGetResource.
public void testGetResource() {
try {
SnapshotDomain domain = HttpConfigFileReader.getResource("http://localhost", 222);
UploadResource resource = domain.getSolrSchema();
Assert.assertNotNull(resource);
Assert.assertNotNull(resource.getContent());
} catch (RepositoryException e) {
Assert.assertFalse(e.getMessage(), true);
}
}
use of com.qlangtech.tis.manage.common.RepositoryException in project tis by qlangtech.
the class TestGetAppconfig method testGetResource.
public void testGetResource() {
try {
SnapshotDomain domain = HttpConfigFileReader.getResource("search4punish", 0, RunEnvironment.DAILY, ConfigFileReader.FILE_SCHEMA);
System.out.println(domain.getSnapshot());
UploadResource resource = domain.getSolrSchema();
Assert.assertNotNull(resource);
Assert.assertNotNull(resource.getContent());
System.out.println(new String(resource.getContent()));
resource = domain.getSolrConfig();
Assert.assertNotNull(resource);
Assert.assertNull(resource.getContent());
} catch (RepositoryException e) {
Assert.assertFalse(e.getMessage(), true);
}
}
Aggregations