APISonar


org.droidparts.test.model.Primitives.date

> org > droidparts > test > model > Primitives > date
org APIs droidparts APIs test APIs model APIs Primitives APIs date APIs

Example 1
public void testDate() {
		long now = System.currentTimeMillis();
		Primitives pri = new Primitives();
		pri.date = new Date(now);
		pri.dates.add(pri.date);
		assertTrue(primitivesManager.create(pri));
		pri = primitivesManager.read(pri._id);
		assertEquals(now, pri.date.getTime());
		assertEquals(1, pri.dates.size());
		assertEquals(now, pri.dates.get(0).getTime());

	}