@Test public void checkToDocument_unknownClass() throws CouchbaseLiteException { Document document = PowerMockito.mock(Document.class); CouchbaseLiteOrm orm = new CouchbaseLiteOrmInternal(); thrown.expect(IllegalArgumentException.class); thrown.expectMessage("Unknown class java.lang.Object. It's annotated?"); orm.toDocument(new Object(), document); }
public <T> Document toDocument(T object, Document document) throws CouchbaseLiteException { Map<String, Object> properties = toProperties(object); document.putProperties(properties); return document; }
CouchbaseLiteOrm { public <T> Document toDocument(T object, Document document) throws CouchbaseLiteException { Map<String, Object> properties = toProperties(object); document.putProperties(properties); return document; } }
CouchbaseLiteOrm { public <T> Document toDocument(T object, Document document) throws CouchbaseLiteException { Map<String, Object> properties = toProperties(object); document.putProperties(properties); return document; } CouchbaseLiteOrm(); }
CouchbaseLiteOrm { public <T> Document toDocument(T object, Document document) throws CouchbaseLiteException { Map<String, Object> properties = toProperties(object); document.putProperties(properties); return document; } CouchbaseLiteOrm(); static CouchbaseLiteOrm newInstance(); T toObject(Document document); Document toDocument(T object, Document document); Map<String, Object> toProperties(T object); }
CouchbaseLiteOrm { public <T> Document toDocument(T object, Document document) throws CouchbaseLiteException { Map<String, Object> properties = toProperties(object); document.putProperties(properties); return document; } CouchbaseLiteOrm(); static CouchbaseLiteOrm newInstance(); T toObject(Document document); Document toDocument(T object, Document document); Map<String, Object> toProperties(T object);  }