MCPcopy Create free account
hub / github.com/androrm/androrm / testEquals

Method testEquals

test/src/com/orm/androrm/test/ModelTest.java:70–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 }
69
70 public void testEquals() {
71 BlankModel m = new BlankModel();
72 m.setName("test");
73 m.save(getContext());
74
75 BlankModel m2 = Model.objects(getContext(), BlankModel.class).get(m.getId());
76
77 assertEquals(m, m2);
78
79 BlankModelNoAutoincrement m3 = new BlankModelNoAutoincrement();
80 m3.save(getContext(), 1);
81
82 assertFalse(m.equals(m3));
83 }
84
85 @Override
86 public void tearDown() {

Callers

nothing calls this directly

Calls 6

setNameMethod · 0.95
objectsMethod · 0.95
saveMethod · 0.80
getIdMethod · 0.80
equalsMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected