kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | ec36ba2298eaefd7cf6bb1dddac3ce390e91605e454581dc2bf799c649c1cc98 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2014-10-13 12:08 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2014-10-13 12:08 +02:00 |
| Parents | fa47b2572dad |
1 file changed
modified driver-mapping/src/test/java/com/datastax/driver/mapping/MapperUDTTest.java +8 −4
| @@ -17,12 +17,10 @@ | ||
| 17 | 17 | |
| 18 | 18 | import java.util.*; |
| 19 | 19 | |
| 20 | +import org.testng.annotations.BeforeMethod; | |
| 21 | + | |
| 20 | 22 | import com.google.common.base.Objects; |
| 21 | -import com.google.common.collect.ImmutableMap; | |
| 22 | -import com.google.common.collect.Sets; | |
| 23 | 23 | import org.testng.annotations.Test; |
| 24 | -import org.testng.collections.Lists; | |
| 25 | - | |
| 26 | 24 | import static org.testng.Assert.assertEquals; |
| 27 | 25 | import static org.testng.Assert.assertNull; |
| 28 | 26 | import static org.testng.Assert.assertTrue; |
| @@ -30,6 +28,7 @@ | ||
| 30 | 28 | import com.datastax.driver.core.CCMBridge; |
| 31 | 29 | import com.datastax.driver.core.ResultSet; |
| 32 | 30 | import com.datastax.driver.core.utils.UUIDs; |
| 31 | + | |
| 33 | 32 | import com.datastax.driver.mapping.annotations.*; |
| 34 | 33 | |
| 35 | 34 | public class MapperUDTTest extends CCMBridge.PerClassSingleNodeCluster { |
| @@ -39,6 +38,11 @@ | ||
| 39 | 38 | "CREATE TABLE users (user_id uuid PRIMARY KEY, name text, mainaddress frozen<address>, other_addresses map<text,frozen<address>>)"); |
| 40 | 39 | } |
| 41 | 40 | |
| 41 | + @BeforeMethod(groups = "short") | |
| 42 | + public void clean() { | |
| 43 | + session.execute("TRUNCATE users"); | |
| 44 | + } | |
| 45 | + | |
| 42 | 46 | @Table(keyspace = "ks", name = "users", |
| 43 | 47 | readConsistency = "QUORUM", |
| 44 | 48 | writeConsistency = "QUORUM") |