/*
 * Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.financial.mock;


import org.springframework.util.Assert;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.Test;

import com.opengamma.core.holiday.HolidaySource;
import com.opengamma.core.region.RegionSource;
import com.opengamma.engine.function.FunctionExecutionContext;
import com.opengamma.financial.OpenGammaExecutionContext;
import com.opengamma.financial.convention.ConventionBundleSource;
import com.opengamma.util.test.TestGroup;

/**
 * Test harness which instantiates InMemory sources with sample data.
 */
public class AbstractMockSourcesTest {

  protected FunctionExecutionContext _executionContext;
  protected RegionSource _regionSource;
  protected HolidaySource _holidaySource;
  protected ConventionBundleSource _conventionBundleSource;

  @BeforeSuite
  protected void initMocks() {
    _executionContext = MockSources.isdaMocks();
    _regionSource = OpenGammaExecutionContext.getRegionSource(_executionContext);
    _holidaySource = OpenGammaExecutionContext.getHolidaySource(_executionContext);
    _conventionBundleSource = OpenGammaExecutionContext.getConventionBundleSource(_executionContext);
  }

  @Test(enabled = true, groups = TestGroup.UNIT)
  public void testSourcesInited() {
    Assert.notNull(_regionSource);
    Assert.notNull(_holidaySource);
    Assert.notNull(_conventionBundleSource);
  }


}

@@ -694,22 +694,62 @@
 ta.%0A */%0A
-public
+@Test(groups = TestGroup.UNIT)%0Apublic abstract
  class A
@@ -987,16 +987,34 @@
 oreSuite
+(alwaysRun = true)
 %0A  prote
@@ -1385,33 +1385,8 @@
 true
-, groups = TestGroup.UNIT
 )%0A  

Fix test intialization