import java.util.Date;
-import junit.framework.Assert;
-
+import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
*/
package com.vaadin.data.fieldgroup;
-import junit.framework.Assert;
-
+import org.junit.Assert;
import org.junit.Test;
public class BeanFieldGroupTest {
import java.util.Date;
-import junit.framework.Assert;
-
+import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
-import junit.framework.Assert;
import junit.framework.TestCase;
+import org.junit.Assert;
+
import com.vaadin.data.Container;
import com.vaadin.data.Container.Filterable;
import com.vaadin.data.Container.ItemSetChangeEvent;
import java.util.Map;
import java.util.Map.Entry;
-import junit.framework.Assert;
+import org.junit.Assert;
import com.vaadin.data.Container;
import com.vaadin.data.Item;
import java.util.List;
import java.util.Set;
-import junit.framework.Assert;
-
+import org.junit.Assert;
import org.junit.Test;
public class BeanItemContainerSortTest {
import java.util.List;
import java.util.Map;
-import junit.framework.Assert;
+import org.junit.Assert;
import com.vaadin.data.Container;
import com.vaadin.data.Item;
import java.util.LinkedHashMap;
import java.util.Map;
-import junit.framework.Assert;
import junit.framework.TestCase;
+import org.junit.Assert;
+
/**
* Test BeanItem specific features.
*
import java.util.SortedSet;
import java.util.TreeSet;
-import junit.framework.Assert;
import junit.framework.TestCase;
+import org.junit.Assert;
+
public class PerformanceTestIndexedContainer extends TestCase {
private static final int REPEATS = 10;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
-import junit.framework.Assert;
import junit.framework.TestCase;
+import org.junit.Assert;
+
import com.vaadin.data.Property;
import com.vaadin.data.util.NestedMethodPropertyTest.Person;
import java.util.Iterator;
-import junit.framework.Assert;
import junit.framework.TestCase;
import org.easymock.EasyMock;
+import org.junit.Assert;
import com.vaadin.data.Item.PropertySetChangeEvent;
import com.vaadin.data.Item.PropertySetChangeListener;
import java.util.List;
-import junit.framework.Assert;
+import org.junit.Assert;
import com.vaadin.data.Item;
package com.vaadin.data.util.filter;
-import junit.framework.Assert;
+import org.junit.Assert;
import com.vaadin.data.Container.Filter;
import com.vaadin.data.Item;
import java.math.BigDecimal;
import java.util.Date;
-import junit.framework.Assert;
+import org.junit.Assert;
import com.vaadin.data.Container.Filter;
import com.vaadin.data.Item;
package com.vaadin.data.util.filter;
-import junit.framework.Assert;
+import org.junit.Assert;
import com.vaadin.data.Container.Filter;
import com.vaadin.data.Item;
package com.vaadin.data.util.filter;
-import junit.framework.Assert;
+import org.junit.Assert;
import com.vaadin.data.Item;
import com.vaadin.data.util.ObjectProperty;
package com.vaadin.data.util.filter;
-import junit.framework.Assert;
+import org.junit.Assert;
import com.vaadin.data.Container.Filter;
import com.vaadin.data.Item;
package com.vaadin.data.util.filter;
-import junit.framework.Assert;
+import org.junit.Assert;
public class SimpleStringFilterTest extends
AbstractFilterTest<SimpleStringFilter> {
package com.vaadin.data.util.sqlcontainer;
-import junit.framework.Assert;
-
+import org.junit.Assert;
import org.junit.Test;
public class ReadOnlyRowIdTest {
package com.vaadin.data.util.sqlcontainer;
-import junit.framework.Assert;
-
+import org.junit.Assert;
import org.junit.Test;
public class UtilTest {
import javax.naming.NamingException;
import javax.sql.DataSource;
-import junit.framework.Assert;
-
import org.easymock.EasyMock;
+import org.junit.Assert;
import org.junit.Test;
public class J2EEConnectionPoolTest {
import java.sql.Connection;
import java.sql.SQLException;
-import junit.framework.Assert;
-
import org.easymock.EasyMock;
+import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
package com.vaadin.data.util.sqlcontainer.filters;
-import junit.framework.Assert;
-
import org.easymock.EasyMock;
+import org.junit.Assert;
import org.junit.Test;
import com.vaadin.data.Item;
import java.util.ArrayList;
-import junit.framework.Assert;
-
import org.easymock.EasyMock;
+import org.junit.Assert;
import org.junit.Test;
import com.vaadin.data.Container.Filter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
-import junit.framework.Assert;
-
import org.easymock.EasyMock;
+import org.junit.Assert;
import org.junit.Test;
import com.vaadin.annotations.VaadinServletConfiguration;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionBindingEvent;
-import junit.framework.Assert;
-
import org.easymock.EasyMock;
+import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.util.Locale;
-import junit.framework.Assert;
import junit.framework.TestCase;
+import org.junit.Assert;
+
import com.vaadin.data.util.converter.Converter;
import com.vaadin.data.util.converter.ReverseConverter;
import com.vaadin.data.util.converter.StringToLongConverter;
import java.util.Locale;
-import junit.framework.Assert;
import junit.framework.TestCase;
+import org.junit.Assert;
import org.junit.Test;
import com.vaadin.data.util.MethodProperty;
package com.vaadin.tests.server.component.gridlayout;
-import junit.framework.Assert;
-
+import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
package com.vaadin.tests.server.component.orderedlayout;
-import junit.framework.Assert;
-
+import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
package com.vaadin.tests.server.component.slider;
-import junit.framework.Assert;
import junit.framework.TestCase;
+import org.junit.Assert;
+
import com.vaadin.ui.Slider;
import com.vaadin.ui.Slider.ValueOutOfBoundsException;
public void testOutOfBounds() {
Slider s = new Slider(0, 10);
s.setValue(0.0);
- Assert.assertEquals(0.0, s.getValue());
+ Assert.assertEquals(0.0, s.getValue().doubleValue(), 0.001);
s.setValue(10.0);
- Assert.assertEquals(10.0, s.getValue());
+ Assert.assertEquals(10.0, s.getValue().doubleValue(), 0.001);
try {
s.setValue(20.0);
fail("Should throw out of bounds exception");
package com.vaadin.tests.server.component.table;
-import junit.framework.Assert;
-
+import org.junit.Assert;
import org.junit.Test;
import com.vaadin.ui.Table;
import java.util.HashMap;
import java.util.Map;
-import junit.framework.Assert;
-
import org.easymock.EasyMock;
+import org.junit.Assert;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.util.ObjectProperty;
import java.util.Iterator;
-import junit.framework.Assert;
+import org.junit.Assert;
public class TestUtil {
public static void assertArrays(Object[] actualObjects,
import java.text.NumberFormat;
import java.util.Locale;
-import junit.framework.Assert;
-
+import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;