Show WootRowTest.java syntax highlighted
package fr.loria.ecoo.wooki.woot.test;
import junit.framework.TestCase;
import fr.loria.ecoo.wooki.woot.core.WootId;
import fr.loria.ecoo.wooki.woot.core.WootRow;
/**
* @author molli
*
*/
public class WootRowTest extends TestCase {
public WootRowTest(String arg0) {
super(arg0);
}
public void testCBCE() {
assertTrue(WootRow.RB.compareTo(WootRow.RE) < 0);
}
public void testSiteId() {
WootRow r1 = new WootRow(new WootId("1", 0), "x");
WootRow r2 = new WootRow(new WootId("2", 0), "x");
assertTrue(r1.compareTo(r2) < 0);
}
public void testLocalClock() {
WootRow r1 = new WootRow(new WootId("1", 0), "x");
WootRow r2 = new WootRow(new WootId("1", 1), "x");
assertTrue(r1.compareTo(r2) < 0);
}
}
See more files for this project here