OrientCleanupPolicyStorage extends StateGuardLifecycleSupport implements CleanupPolicyStorage { @Override @Guarded(by = STARTED) public List<CleanupPolicy> getAll() { return inTx(databaseInstance).call(db -> ImmutableList.copyOf(entityAdapter.browse(db))); } @Inject  OrientCleanupPolicyStorage(
      @Named(DatabaseInstanceNames.CONFIG) final Provider<DatabaseInstance> databaseInstance,
      final OrientCleanupPolicyEntityAdapter entityAdapter); @Override @Guarded(by = STARTED) long count(); @Override @Guarded(by = STARTED) CleanupPolicy add(final CleanupPolicy item); @Override @Guarded(by = STARTED) CleanupPolicy update(final CleanupPolicy cleanupPolicy); @Override @Guarded(by = STARTED) void remove(final CleanupPolicy cleanupPolicy); @Override @Guarded(by = STARTED) CleanupPolicy get(final String cleanupPolicyName); @Override @Guarded(by = STARTED) List<CleanupPolicy> getAll(); @Override @Guarded(by = STARTED) boolean exists(final String cleanupPolicyName); @Override List<CleanupPolicy> getAllByFormat(final String format); @Override CleanupPolicy newCleanupPolicy();  }
@Test public void getAllIsEmpty() { List<CleanupPolicy> cleanupPolicies = underTest.getAll(); assertThat(cleanupPolicies, notNullValue()); assertThat(cleanupPolicies.isEmpty(), is(true)); }