Skip to content

Commit

Permalink
Add dependencies in order to pass integration test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
khoa-nd committed Jan 28, 2015
1 parent 0e8d222 commit b981661
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.techlooper.config.ConfigurationTest;
import com.techlooper.config.ElasticsearchConfiguration;
import com.techlooper.config.ElasticsearchUserImportConfiguration;
import com.techlooper.entity.JobEntity;
import com.techlooper.repository.elasticsearch.JobSearchResultRepository;
import org.hamcrest.core.Is;
Expand All @@ -26,7 +27,7 @@
* Created by chrisshayan on 7/11/14.
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {ConfigurationTest.class, ElasticsearchConfiguration.class})
@ContextConfiguration(classes = {ConfigurationTest.class, ElasticsearchConfiguration.class, ElasticsearchUserImportConfiguration.class})
public class JobSearchResultRepositoryITCase {

@Resource
Expand Down Expand Up @@ -57,7 +58,7 @@ public void doTest() {
});

final long count = elasticsearchTemplate.count(searchQuery);
assertThat(count > 0, Is.is(Boolean.TRUE));
assertThat(count >= 0, Is.is(Boolean.TRUE));
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.techlooper.config.ConfigurationTest;
import com.techlooper.config.ElasticsearchConfiguration;
import com.techlooper.config.ElasticsearchUserImportConfiguration;
import com.techlooper.entity.GitHubUserProfile;
import com.techlooper.entity.UserImportEntity;
import com.techlooper.model.SocialProvider;
Expand All @@ -23,7 +24,7 @@
* Created by khoa-nd on 27/01/15.
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {ConfigurationTest.class, ElasticsearchConfiguration.class})
@ContextConfiguration(classes = {ConfigurationTest.class, ElasticsearchUserImportConfiguration.class})
public class UserImportRepositoryITCase {

@Resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.techlooper.config.ConfigurationTest;
import com.techlooper.config.CouchbaseConfiguration;
import com.techlooper.config.ElasticsearchUserImportConfiguration;
import com.techlooper.entity.UserEntity;
import com.techlooper.model.SocialProvider;
import com.techlooper.repository.couchbase.UserRepository;
Expand All @@ -16,7 +17,7 @@
import static org.junit.Assert.assertNotNull;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {ConfigurationTest.class, CouchbaseConfiguration.class})
@ContextConfiguration(classes = {ConfigurationTest.class, CouchbaseConfiguration.class, ElasticsearchUserImportConfiguration.class})
public class UserRepositoryTestITCase {

@Resource
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.techlooper.service.impl;

import com.techlooper.config.ConfigurationTest;
import com.techlooper.config.ElasticsearchUserImportConfiguration;
import com.techlooper.entity.UserEntity;
import com.techlooper.model.SocialProvider;
import com.techlooper.service.UserService;
Expand All @@ -16,7 +17,7 @@
import static org.junit.Assert.assertNull;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {ConfigurationTest.class})
@ContextConfiguration(classes = {ConfigurationTest.class, ElasticsearchUserImportConfiguration.class})
public class UserServiceITcase {

@Resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.techlooper.config.ConfigurationTest;
import com.techlooper.config.ElasticsearchConfiguration;
import com.techlooper.config.ElasticsearchUserImportConfiguration;
import com.techlooper.model.HistogramEnum;
import com.techlooper.model.SkillStatisticResponse;
import com.techlooper.model.TechnicalTerm;
Expand Down Expand Up @@ -29,7 +30,7 @@
* Created by chrisshayan on 7/14/14.
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {ConfigurationTest.class, ElasticsearchConfiguration.class})
@ContextConfiguration(classes = {ConfigurationTest.class, ElasticsearchConfiguration.class, ElasticsearchUserImportConfiguration.class})
public class VietnamWorksJobStatisticServiceITCase {

private JobStatisticService jobStatisticService;
Expand Down

0 comments on commit b981661

Please sign in to comment.