@Test public void testNonIndexableObjectUpdateMessage() throws Exception { String id = "/test"; indexerGroup.onMessage( createUnindexableMessage( REPOSITORY_NAMESPACE + EventType.valueOf(NODE_ADDED).toString(), id)); verify(indexer, never()).update(anyString(), any()); }
@Test public void testRDFIndexablePropertyUpdateMessage() throws Exception { when(indexer.getIndexerType()).thenReturn(Indexer.IndexerType.RDF); String id = "/test/dc:title"; indexerGroup.onMessage( createIndexablePropertyMessage( REPOSITORY_NAMESPACE + EventType.valueOf(PROPERTY_CHANGED).toString(), id)); verify(indexer, atLeastOnce()).update(anyString(), any()); }
@Test public void testNamedFieldsIndexableObjectUpdateMessage() throws Exception { when(indexer.getIndexerType()).thenReturn(Indexer.IndexerType.NAMEDFIELDS); String id = "/test"; indexerGroup.onMessage( createIndexableMessage( REPOSITORY_NAMESPACE + EventType.valueOf(NODE_ADDED).toString(), id)); verify(indexer, atLeastOnce()).update(anyString(), any()); }