Revision e1c9b32e
Added by Anahit Babadshanjan over 15 years ago
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/common/CdmBaseTest.java | ||
---|---|---|
15 | 15 |
import java.beans.PropertyChangeListener; |
16 | 16 |
import java.beans.PropertyChangeSupport; |
17 | 17 |
import java.lang.reflect.Field; |
18 |
import java.util.Calendar; |
|
19 | 18 |
import java.util.UUID; |
20 | 19 |
|
21 | 20 |
import org.apache.log4j.Logger; |
... | ... | |
41 | 40 |
|
42 | 41 |
static public class TestCdmBaseClass extends CdmBase{ |
43 | 42 |
public String testString = "testStringXsdfjlksj"; |
44 |
public float testFloat = (float)1.43446E-5f;
|
|
43 |
public float testFloat = 1.43446E-5f; |
|
45 | 44 |
public boolean testBoolean = false; |
46 | 45 |
} |
47 | 46 |
|
... | ... | |
318 | 317 |
|
319 | 318 |
//Test |
320 | 319 |
float oldValue = testCdm.testFloat; |
321 |
float newValue = (float)1.40239846E-4f;
|
|
320 |
float newValue = 1.40239846E-4f; |
|
322 | 321 |
assertFalse(oldValue == newValue); |
323 | 322 |
testCdm.firePropertyChange(prop, oldValue, newValue); |
324 | 323 |
assertTrue(listener.isChanged()); |
... | ... | |
460 | 459 |
@Test |
461 | 460 |
public void testSetCreated() { |
462 | 461 |
DateTime calendar = new DateTime(); |
463 |
DateTime calendarTrue = (DateTime)calendar.withMillisOfSecond(23);
|
|
464 |
DateTime calendarFalse = (DateTime)calendar.withMillisOfSecond(23);
|
|
462 |
DateTime calendarTrue = calendar.withMillisOfSecond(23); |
|
463 |
DateTime calendarFalse = calendar.withMillisOfSecond(23); |
|
465 | 464 |
calendarFalse = calendarFalse.plusMonths(5); |
466 | 465 |
cdmBase.setCreated(calendar); |
467 | 466 |
calendar = calendar.withMillisOfSecond(0); |
Also available in: Unified diff
Performed project cleanup.