@Test public void testStoreArticle() { CouchDBArticle art = new CouchDBArticle(); art.fillWithRandom(); try { CouchDBStorage storage = (CouchDBStorage)subject.storage(null); storage.addArticle(art); } catch (StorageBackendException ex) { fail(ex.getLocalizedMessage()); } }
@Override public Storage storage(Thread thread) throws StorageBackendException { return new CouchDBStorage(emf.createEntityManager()); }
CouchDBStorageProvider implements StorageProvider { @Override public Storage storage(Thread thread) throws StorageBackendException { return new CouchDBStorage(emf.createEntityManager()); } }
CouchDBStorageProvider implements StorageProvider { @Override public Storage storage(Thread thread) throws StorageBackendException { return new CouchDBStorage(emf.createEntityManager()); } CouchDBStorageProvider(); }
CouchDBStorageProvider implements StorageProvider { @Override public Storage storage(Thread thread) throws StorageBackendException { return new CouchDBStorage(emf.createEntityManager()); } CouchDBStorageProvider(); @Override boolean isSupported(String uri); @Override Storage storage(Thread thread); }
CouchDBStorageProvider implements StorageProvider { @Override public Storage storage(Thread thread) throws StorageBackendException { return new CouchDBStorage(emf.createEntityManager()); } CouchDBStorageProvider(); @Override boolean isSupported(String uri); @Override Storage storage(Thread thread);  }