OvernightIndex extends Index { public ExternalId getConventionId() { return _conventionId; } OvernightIndex();  OvernightIndex(final String name, final ExternalId conventionId);  OvernightIndex(final String name, final String description, final ExternalId conventionId);  OvernightIndex(final String name, final String description, final ExternalId conventionId, ExternalIdBundle idBundle); static OvernightIndex.Meta meta(); @Override OvernightIndex.Meta metaBean(); ExternalId getConventionId(); void setConventionId(ExternalId conventionId); final Property<ExternalId> conventionId(); @Override OvernightIndex clone(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static final String INDEX_TYPE; }
@Test public void test() { assertEquals(NAME, INDEX_NO_DESCRIPTION.getName()); assertEquals(NAME, INDEX_WITH_DESCRIPTION.getName()); assertNull(INDEX_NO_DESCRIPTION.getDescription()); assertEquals(DESCRIPTION, INDEX_WITH_DESCRIPTION.getDescription()); assertEquals(TICKERS, INDEX_NO_DESCRIPTION.getExternalIdBundle()); assertEquals(TICKERS, INDEX_WITH_DESCRIPTION.getExternalIdBundle()); assertEquals(CONVENTION_ID, INDEX_NO_DESCRIPTION.getConventionId()); assertEquals(CONVENTION_ID, INDEX_WITH_DESCRIPTION.getConventionId()); }