@Test(expected = UnsupportedOperationException.class)
public void testUnsupportBeforeWithoutIndex() throws Exception
{
PresenceCursor cursor = null;
try
{
PresenceNode node = new PresenceNode( schemaManager.getAttributeType( "sn" ) );
PresenceEvaluator evaluator = new PresenceEvaluator( node, store, schemaManager );
cursor = new PresenceCursor( store, evaluator );
// test before()
IndexEntry<String, String> entry = new IndexEntry<String, String>();
entry.setKey( SchemaConstants.SN_AT_OID );
cursor.before( entry );
}
finally
{
cursor.close();
}
}