renamed RepositoryTest

This commit is contained in:
Rizwan Idrees 2013-03-22 14:59:54 +00:00
parent d8e59ea75a
commit 44cb4cd58f
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.data.elasticsearch.repositories; package org.springframework.data.elasticsearch.repository.support;
import org.junit.Before; import org.junit.Before;
@ -25,6 +25,7 @@ import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort; import org.springframework.data.domain.Sort;
import org.springframework.data.elasticsearch.SampleEntity; import org.springframework.data.elasticsearch.SampleEntity;
import org.springframework.data.elasticsearch.core.query.SearchQuery; import org.springframework.data.elasticsearch.core.query.SearchQuery;
import org.springframework.data.elasticsearch.repositories.SampleElasticsearchRepository;
import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@ -44,8 +45,8 @@ import static org.junit.Assert.*;
*/ */
@RunWith(SpringJUnit4ClassRunner.class) @RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:/repository-test.xml") @ContextConfiguration("classpath:/simple-repository-test.xml")
public class RepositoryTest { public class SimpleElasticsearchRepositoryTest {
@Resource @Resource
private SampleElasticsearchRepository repository; private SampleElasticsearchRepository repository;
@ -79,7 +80,6 @@ public class RepositoryTest {
SampleEntity entity2FromElasticSearch = repository.findOne(documentId2); SampleEntity entity2FromElasticSearch = repository.findOne(documentId2);
assertThat(entity2FromElasticSearch, is(notNullValue())); assertThat(entity2FromElasticSearch, is(notNullValue()));
} }
@Test @Test