InMemoryInterpolatedYieldCurveDefinitionMaster implements InterpolatedYieldCurveDefinitionMaster, InterpolatedYieldCurveDefinitionSource, ChangeProvider { @Override public YieldCurveDefinitionDocument correct(YieldCurveDefinitionDocument document) { throw new UnsupportedOperationException(); } InMemoryInterpolatedYieldCurveDefinitionMaster(); String getUniqueIdScheme(); void setUniqueIdScheme(final String scheme); @Override synchronized YieldCurveDefinition getDefinition(Currency currency, String name); @Override YieldCurveDefinition getDefinition(final Currency currency, final String name, final VersionCorrection versionCorrection); @Override synchronized YieldCurveDefinitionDocument add(YieldCurveDefinitionDocument document); @Override synchronized YieldCurveDefinitionDocument addOrUpdate(YieldCurveDefinitionDocument document); @Override YieldCurveDefinitionDocument correct(YieldCurveDefinitionDocument document); @Override synchronized YieldCurveDefinitionDocument get(UniqueId uid); @Override synchronized YieldCurveDefinitionDocument get(ObjectIdentifiable objectIdable, VersionCorrection versionCorrection); @Override synchronized void remove(ObjectIdentifiable objectIdentifiable); @Override synchronized YieldCurveDefinitionDocument update(YieldCurveDefinitionDocument document); @Override ChangeManager changeManager(); @Override List<UniqueId> replaceVersions(ObjectIdentifiable objectIdentifiable, List<YieldCurveDefinitionDocument> replacementDocuments); @Override List<UniqueId> replaceAllVersions(ObjectIdentifiable objectIdentifiable, List<YieldCurveDefinitionDocument> replacementDocuments); @Override List<UniqueId> replaceVersion(UniqueId uniqueId, List<YieldCurveDefinitionDocument> replacementDocuments); @Override void removeVersion(final UniqueId uniqueId); @Override UniqueId replaceVersion(YieldCurveDefinitionDocument replacementDocument); @Override UniqueId addVersion(ObjectIdentifiable objectId, YieldCurveDefinitionDocument documentToAdd); @Override Map<UniqueId, YieldCurveDefinitionDocument> get(Collection<UniqueId> uniqueIds); static final String DEFAULT_SCHEME; }
@Test(expectedExceptions = UnsupportedOperationException.class) public void testCorrect() { _master.correct(null); }