SaaS公司Crelate概况、产品功能、融资历史及主要竞品介绍
1. Crelate概况
Crelate产品功能
Crelate融资历史
Crelate主要竞品介绍
"; String title = "Crelate简介"; String url = "http://www.ishangqing.com/post/SaaSgong-si-crelate-gAI-kuang-chan-pin-gong-neng-rong-zihuoBI-ji-zhu-yao-jing-pin-jie-shao"; String author = "鲁锐"; String authorUrl = "http://www.ishangqing.com"; String authorAvatar = "http://www.ishangqing.com/templates/ishangqing/image/ishangqinglogo.png"; String content = "Crelate是一家位于西雅图美国的高科技公司,专注于为人力资源管理人员提供简单的招聘软件,即使您不懂一点技术,也可以简单的使用Crelate软件。目前Crelate的主要竞品有:Jobvite,Recruitee,SmartRecruiters,JobDiva,SAP,Workday,Taleo,Zoho Recruit。"; String tags = "Crelate,SaaS,招聘软件,西雅图,美国"; String category = "软件"; Date pubDate = new Date();
String[] tagsStr = tags.split(","); List<String> tagsList = new ARRayList<String>(); for (String tag : tagsStr) { tagsList.add(tag); } Article article = new Article(); article.setTitle(title); article.setUrl(url); article.setAuthor(author); article.setAuthorUrl(authorUrl); article.setAuthorAvatar(authorAvatar); article.setContent(content); article.setTags(tagsList); article.setCategory(category); article.setPubDate(pubDate); articleService.save(article);
}
@Test public void testSaveArticleFromUrl() { String targetUrl = "http://www.ishangqing.com/post/shanghai-shangye-zhoubian-wai-gongsi-dianpu-gongsi-zhongwai-gongsi-huiyuanka-gongsi-sheng-ji-zhong-duan";
articleService.saveArticleFromUrl(targetUrl);
}
@Test public void testSaveArticlesFromUrl() { String url = "http://www.ishangqing.com/list/1/6.html"; articleService.saveArticlesFromUrl(url); }
@Test @Ignore public void testSaveArticlesFromAllUrls() { for (int i = 1; i < 20; i++) { String url = "http://www.ishangqing.com/list/" + i + "/6.html"; articleService.saveArticlesFromUrl(url); } }
@Test @Ignore public void testSaveArticlesFromAllUrlsTHRead() { for (int i = 1; i < 20; i++) { final String url = "http://www.ishangqing.com/list/" + i + "/6.html"; new Thread(new Runnable() { @Override public void run() { articleService.saveArticlesFromUrl(url); } }).start(); } }
@Test public void testSaveArticlesFromAllUrlsThread2() { for (int i = 1; i < 20; i++) { final String url = "http://www.ishangqing.com/list/" + i + "/6.html"; articleService.saveArticlesFromUrl(url); } }
@Test public void testSaveArticlesFromAllUrlsThread3() { final CountDownLatch dONESignal = new CountDownLatch(20);
for (int i = 1; i < 20; i++) { final String url = "http://www.ishangqing.com/list/" + i + "/6.html"; new Thread(new Runnable() { @Override public void run() { articleService.saveArticlesFromUrl(url); doneSignal.countDown(); } }).start(); } try { doneSignal.await(); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); }
}
@Test public void testSaveArticlesFromAllUrlsThread4() { final CountDownLatch doneSignal = new CountDownLatch(20); final ExecutorService executor = Executors.newFixedThreadPool(20);
for (int i = 1; i < 20; i++) { final String url = "http://www.ishangqing.com/list/" + i + "/6.html"; executor.submit(new Runnable() { @Override public void run() { articleService.saveArticlesFromUrl(url); doneSignal.countDown(); } }); } executor.shutdown(); try { doneSignal.await(); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); }
}
@Test @Ignore public void testCalcArticleCount() { int count = articleService.calcArticleCount(); System.out.println("count=" + count); }
@Test @Ignore public void testQueryArticleList() { List
articleList = articleService.queryArticleList(0, 10); for (Article article : articleList) { System.out.println("article=" + article); } } @Test @Ignore public void testQueryArticleById() { Article article = articleService.queryArticleById("5770a98c60b2b36d09d8a7c3"); System.out.println("article=" + article); }
@Test @Ignore public void testQueryArticleByUrl() { String targetUrl = "http://www.ishangqing.com/post/shanghai-shangye-zhoubian-wai-gongsi-dianpu-gongsi-zhongwai-gongsi-huiyuanka-gongsi-sheng-ji-zhong-duan"; Article article = articleService.queryArticleByUrl(targetUrl); System.out.println("article=" + article); }
@Test @Ignore public void testSearchArticleByKeyword() { String keyword = "公司"; List
articleList = articleService.searchArticleByKeyword(keyword, 0,