separated integration tests from unit tests

This commit is contained in:
Matthew Adams
2013-11-20 16:30:39 -06:00
parent cc5e45483c
commit 2230370101
19 changed files with 30 additions and 30 deletions

View File

@@ -1,4 +1,4 @@
package org.springframework.data.cassandra.test.unit.core;
package org.springframework.cassandra.test.unit.support;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

View File

@@ -1,4 +1,4 @@
package org.springframework.data.cassandra.test.unit.config;
package org.springframework.data.cassandra.test.integration.config;
import java.io.IOException;

View File

@@ -1,4 +1,4 @@
package org.springframework.data.cassandra.test.unit.config;
package org.springframework.data.cassandra.test.integration.config;
import java.io.IOException;

View File

@@ -1,4 +1,4 @@
package org.springframework.data.cassandra.test.unit.config;
package org.springframework.data.cassandra.test.integration.config;
import org.springframework.cassandra.core.CassandraOperations;
import org.springframework.cassandra.core.CassandraTemplate;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.cassandra.test.unit.mapping;
package org.springframework.data.cassandra.test.integration.mapping;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
@@ -37,12 +37,12 @@ import org.springframework.data.cassandra.mapping.Table;
import org.springframework.data.util.ClassTypeInformation;
/**
* Unit tests for {@link BasicCassandraPersistentEntity}.
* Integration tests for {@link BasicCassandraPersistentEntity}.
*
* @author Alex Shvid
*/
@RunWith(MockitoJUnitRunner.class)
public class BasicCassandraPersistentEntityUnitTests {
public class BasicCassandraPersistentEntityIntegrationTests {
@Mock
ApplicationContext context;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.cassandra.test.unit.mapping;
package org.springframework.data.cassandra.test.integration.mapping;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
@@ -42,11 +42,11 @@ import org.springframework.data.util.ClassTypeInformation;
import org.springframework.util.ReflectionUtils;
/**
* Unit test for {@link BasicCassandraPersistentProperty}.
* Integration test for {@link BasicCassandraPersistentProperty}.
*
* @author Alex Shvid
*/
public class BasicCassandraPersistentPropertyUnitTests {
public class BasicCassandraPersistentPropertyIntegrationTests {
CassandraPersistentEntity<Timeline> entity;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.cassandra.test.unit.table;
package org.springframework.data.cassandra.test.integration.table;
import org.springframework.data.cassandra.mapping.RowId;
import org.springframework.data.cassandra.mapping.Table;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.cassandra.test.unit.table;
package org.springframework.data.cassandra.test.integration.table;
import java.util.Date;
import java.util.Set;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.cassandra.test.unit.table;
package org.springframework.data.cassandra.test.integration.table;
import java.util.Date;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.cassandra.test.unit.table;
package org.springframework.data.cassandra.test.integration.table;
import java.util.Date;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.cassandra.test.unit.table;
package org.springframework.data.cassandra.test.integration.table;
import java.util.Date;
import java.util.Map;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.cassandra.test.unit.table;
package org.springframework.data.cassandra.test.integration.table;
import java.util.Date;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.cassandra.test.unit.table;
package org.springframework.data.cassandra.test.integration.table;
import java.util.Set;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.cassandra.test.unit.table;
package org.springframework.data.cassandra.test.integration.table;
import java.util.Set;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.cassandra.test.unit.template;
package org.springframework.data.cassandra.test.integration.template;
import java.io.IOException;
@@ -34,7 +34,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cassandra.core.CassandraOperations;
import org.springframework.context.ApplicationContext;
import org.springframework.data.cassandra.test.unit.config.TestConfig;
import org.springframework.data.cassandra.test.integration.config.TestConfig;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.support.AnnotationConfigContextLoader;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.cassandra.test.unit.template;
package org.springframework.data.cassandra.test.integration.template;
import java.io.IOException;
import java.util.ArrayList;
@@ -44,8 +44,8 @@ import org.springframework.data.cassandra.core.CassandraDataOperations;
import org.springframework.data.cassandra.core.ConsistencyLevel;
import org.springframework.data.cassandra.core.QueryOptions;
import org.springframework.data.cassandra.core.RetryPolicy;
import org.springframework.data.cassandra.test.unit.config.TestConfig;
import org.springframework.data.cassandra.test.unit.table.Book;
import org.springframework.data.cassandra.test.integration.config.TestConfig;
import org.springframework.data.cassandra.test.integration.table.Book;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.support.AnnotationConfigContextLoader;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.cassandra.test.unit.template;
package org.springframework.data.cassandra.test.integration.template;
import static org.junit.Assert.assertNotNull;
@@ -44,7 +44,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cassandra.core.CassandraOperations;
import org.springframework.cassandra.core.HostMapper;
import org.springframework.cassandra.core.RingMember;
import org.springframework.data.cassandra.test.unit.config.TestConfig;
import org.springframework.data.cassandra.test.integration.config.TestConfig;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.support.AnnotationConfigContextLoader;

View File

@@ -37,12 +37,12 @@
<cassandra:keyspace-attributes auto="update"
replication-stategy="SimpleStrategy" replication-factor="1"
durable-writes="true">
<cassandra:table entity="org.springframework.data.cassandra.test.unit.table.Comment" />
<cassandra:table entity="org.springframework.data.cassandra.test.integration.table.Comment" />
<cassandra:table
entity="org.springframework.data.cassandra.test.unit.table.Notification" />
<cassandra:table entity="org.springframework.data.cassandra.test.unit.table.Post" />
<cassandra:table entity="org.springframework.data.cassandra.test.unit.table.Timeline" />
<cassandra:table entity="org.springframework.data.cassandra.test.unit.table.User" />
entity="org.springframework.data.cassandra.test.integration.table.Notification" />
<cassandra:table entity="org.springframework.data.cassandra.test.integration.table.Post" />
<cassandra:table entity="org.springframework.data.cassandra.test.integration.table.Timeline" />
<cassandra:table entity="org.springframework.data.cassandra.test.integration.table.User" />
</cassandra:keyspace-attributes>
</cassandra:keyspace>