@Test @SuppressWarnings("deprecation") @Ignore public void testExistsWhenSecondaryPreferredOld() { if (isReplicaSet()) { final Key<FacebookUser> key = getDs().save(new FacebookUser(System.currentTimeMillis(), "user 1"), W2); assertNotNull("Should exist when using secondaryPreferred", getAds().exists(key, secondaryPreferred())); } }
@Test @Ignore public void testExistsWhenSecondaryPreferred() { if (isReplicaSet()) { final Key<FacebookUser> key = getDs().save(new FacebookUser(System.currentTimeMillis(), "user 1"), new InsertOptions().writeConcern(W2)); assertNotNull("Should exist when using secondaryPreferred", getAds().exists(key, secondaryPreferred())); } }