/** * Obtains an instance representing an FX matrix, specifying the source. * * @param observableSource the source of the observable market data used to create the rate * @return an identifier for the FX matrix */ public static FxMatrixId of(ObservableSource observableSource) { return new FxMatrixId(observableSource); }
public void test_standard() { FxMatrixId test = FxMatrixId.standard(); assertEquals(test.getObservableSource(), ObservableSource.NONE); assertEquals(test.getMarketDataType(), FxMatrix.class); assertEquals(test.toString(), "FxMatrixId"); }
public void test_of() { FxMatrixId test = FxMatrixId.of(OBS_SOURCE); assertEquals(test.getObservableSource(), OBS_SOURCE); assertEquals(test.getMarketDataType(), FxMatrix.class); assertEquals(test.toString(), "FxMatrixId:Vendor"); }
public void test_serialization() { FxMatrixId test = FxMatrixId.standard(); assertSerialization(test); }