HBaseStore extends Store { @Override public Set<StoreTrait> getTraits() { return TRAITS; }  @Override void initialise(final String graphId, final Schema schema, final StoreProperties properties); void preInitialise(final String graphId, final Schema schema, final StoreProperties properties); Configuration getConfiguration(); Connection getConnection(); TableName getTableName(); Table getTable(); HBaseRetriever<OP> createRetriever(final OP operation,
                    final User user,
                    final Iterable<? extends ElementId> ids,
                    final boolean includeMatchedVertex,
                    final Class<?>... extraProcessors); @Override void validateSchemas(); @Override Set<StoreTrait> getTraits(); @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST_OF_RETURN_VALUE", justification = "The properties should always be HBaseProperties") @Override HBaseProperties getProperties(); static final Set<StoreTrait> TRAITS; }
@Test public void testStoreTraits() { final Collection<StoreTrait> traits = store.getTraits(); assertNotNull(traits); assertEquals(traits.size(), 10, "Collection size should be 10"); assertTrue(traits.contains(INGEST_AGGREGATION), "Collection should contain INGEST_AGGREGATION trait"); assertTrue(traits.contains(QUERY_AGGREGATION), "Collection should contain QUERY_AGGREGATION trait"); assertTrue(traits.contains(PRE_AGGREGATION_FILTERING), "Collection should contain PRE_AGGREGATION_FILTERING trait"); assertTrue(traits.contains(POST_AGGREGATION_FILTERING), "Collection should contain POST_AGGREGATION_FILTERING trait"); assertTrue(traits.contains(TRANSFORMATION), "Collection should contain TRANSFORMATION trait"); assertTrue(traits.contains(POST_TRANSFORMATION_FILTERING), "Collection should contain POST_TRANSFORMATION_FILTERING trait"); assertTrue(traits.contains(STORE_VALIDATION), "Collection should contain STORE_VALIDATION trait"); assertTrue(traits.contains(ORDERED), "Collection should contain ORDERED trait"); assertTrue(traits.contains(VISIBILITY), "Collection should contain VISIBILITY trait"); }