@@ -0,0 +1,2806 @@
+/*%0D%0A * Copyright (C) 2012 sol-dock-r authors.%0D%0A * %0D%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0D%0A * you may not use this file except in compliance with the License.%0D%0A * You may obtain a copy of the License at%0D%0A * %0D%0A * http://www.apache.org/licenses/LICENSE-2.0%0D%0A * %0D%0A * Unless required by applicable law or agreed to in writing, software%0D%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0D%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0D%0A * See the License for the specific language governing permissions and%0D%0A * limitations under the License.%0D%0A */%0D%0Apackage at.pagu.soldockr.core.mapping;%0D%0A%0D%0Aimport junit.framework.Assert;%0D%0A%0D%0Aimport org.junit.Test;%0D%0Aimport org.junit.runner.RunWith;%0D%0Aimport org.mockito.Mock;%0D%0Aimport org.mockito.Mockito;%0D%0Aimport org.mockito.runners.MockitoJUnitRunner;%0D%0Aimport org.springframework.data.util.TypeInformation;%0D%0A%0D%0A@RunWith(MockitoJUnitRunner.class)%0D%0Apublic class SimpleSolrPersistentEntityTest %7B%0D%0A  %0D%0A  private static final String CORE_NAME = %22core1%22;%0D%0A%0D%0A  @SuppressWarnings(%22rawtypes%22)%0D%0A  @Mock%0D%0A  TypeInformation typeInfo;%0D%0A%0D%0A  @SuppressWarnings(%22unchecked%22)%0D%0A  @Test%0D%0A  public void testPersistentEntityWithSolrDocumentAnnotation() %7B%0D%0A    Mockito.when(typeInfo.getType()).thenReturn(SearchableBeanWithSolrDocumentAnnotation.class);%0D%0A%0D%0A    SimpleSolrPersistentEntity%3CSearchableBeanWithSolrDocumentAnnotation%3E pe = new SimpleSolrPersistentEntity%3CSearchableBeanWithSolrDocumentAnnotation%3E(typeInfo);%0D%0A    Assert.assertEquals(CORE_NAME, pe.getSolrCoreName());%0D%0A  %7D%0D%0A%0D%0A  @SuppressWarnings(%22unchecked%22)%0D%0A  @Test%0D%0A  public void testPersistentEntityWithoutSolrDocumentAnnotation() %7B%0D%0A    Mockito.when(typeInfo.getType()).thenReturn(SearchableBeanWithoutSolrDocumentAnnotation.class);%0D%0A%0D%0A    SimpleSolrPersistentEntity%3CSearchableBeanWithoutSolrDocumentAnnotation%3E pe = new SimpleSolrPersistentEntity%3CSearchableBeanWithoutSolrDocumentAnnotation%3E(typeInfo);%0D%0A    Assert.assertEquals(%22searchablebeanwithoutsolrdocumentannotation%22, pe.getSolrCoreName());%0D%0A  %7D%0D%0A%0D%0A  @SuppressWarnings(%22unchecked%22)%0D%0A  @Test%0D%0A  public void testPersistentEntityWithEmptySolrDocumentAnnotation() %7B%0D%0A    Mockito.when(typeInfo.getType()).thenReturn(SearchableBeanWithEmptySolrDocumentAnnotation.class);%0D%0A%0D%0A    SimpleSolrPersistentEntity%3CSearchableBeanWithEmptySolrDocumentAnnotation%3E pe = new SimpleSolrPersistentEntity%3CSearchableBeanWithEmptySolrDocumentAnnotation%3E(typeInfo);%0D%0A    Assert.assertEquals(%22searchablebeanwithemptysolrdocumentannotation%22, pe.getSolrCoreName());%0D%0A  %7D%0D%0A%0D%0A  @SolrDocument(solrCoreName = CORE_NAME)%0D%0A  static class SearchableBeanWithSolrDocumentAnnotation %7B%7D%0D%0A%0D%0A  @SolrDocument%0D%0A  static class SearchableBeanWithEmptySolrDocumentAnnotation %7B%7D%0D%0A%0D%0A  static class SearchableBeanWithoutSolrDocumentAnnotation %7B%7D%0D%0A%0D%0A%7D%0D%0A

add missing tests