Skip to content

Commit

Permalink
DATACASS-35 : import static for Assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
prowave committed Nov 26, 2013
1 parent 1d01ac9 commit 6aa8811
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
*/
package org.springframework.cassandra.test.integration.core.template;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;

import junit.framework.Assert;

import org.cassandraunit.CassandraCQLUnit;
import org.cassandraunit.dataset.cql.ClassPathCQLDataSet;
import org.junit.Before;
Expand Down Expand Up @@ -118,7 +118,7 @@ public Collection<MyHost> mapHosts(Set<Host> host) throws DriverException {
});

assertNotNull(ring);
Assert.assertTrue(ring.size() > 0);
assertTrue(ring.size() > 0);

for (MyHost h : ring) {
log.info("hostMapperTest Host -> " + h.someName);
Expand Down Expand Up @@ -157,8 +157,8 @@ public void ingestionTestListOfList() {
Book b1 = getBook("1234");
Book b2 = getBook("2345");

Assert.assertEquals(b1.getIsbn(), l1.get(0));
Assert.assertEquals(b2.getIsbn(), l2.get(0));
assertEquals(b1.getIsbn(), l1.get(0));
assertEquals(b2.getIsbn(), l2.get(0));
}

@Test
Expand All @@ -178,9 +178,9 @@ public void ingestionTestObjectArray() {
Book b2 = getBook("2345");
Book b3 = getBook("3456");

Assert.assertEquals(b1.getIsbn(), values[0][0]);
Assert.assertEquals(b2.getTitle(), values[1][1]);
Assert.assertEquals(b3.getAuthor(), values[2][2]);
assertEquals(b1.getIsbn(), values[0][0]);
assertEquals(b2.getTitle(), values[1][1]);
assertEquals(b3.getAuthor(), values[2][2]);
}

/**
Expand Down Expand Up @@ -234,9 +234,9 @@ public void ingestionTestRowIterator() {
Book b2 = getBook("2345");
Book b3 = getBook("3456");

Assert.assertEquals(b1.getIsbn(), o1[0]);
Assert.assertEquals(b2.getTitle(), o2[1]);
Assert.assertEquals(b3.getAuthor(), o3[2]);
assertEquals(b1.getIsbn(), o1[0]);
assertEquals(b2.getTitle(), o2[1]);
assertEquals(b3.getAuthor(), o3[2]);
}

public Book getBook(final String isbn) {
Expand Down

0 comments on commit 6aa8811

Please sign in to comment.