Examples of FilesystemPortfolioSchemaLocator


Examples of com.opengamma.integration.tool.portfolio.xml.FilesystemPortfolioSchemaLocator

@Test(groups = TestGroup.UNIT)
public class FilesystemPortfolioSchemaLocatorTest {

  @Test(expectedExceptions = IllegalArgumentException.class)
  public void testLocationMustNotBeNull() {
    new FilesystemPortfolioSchemaLocator(null);
  }
View Full Code Here

Examples of com.opengamma.integration.tool.portfolio.xml.FilesystemPortfolioSchemaLocator

    new FilesystemPortfolioSchemaLocator(null);
  }

  @Test(expectedExceptions = IllegalArgumentException.class)
  public void testLocationMustNotExist() {
    new FilesystemPortfolioSchemaLocator(new File("I don't exist"));
  }
View Full Code Here

Examples of com.opengamma.integration.tool.portfolio.xml.FilesystemPortfolioSchemaLocator

    new FilesystemPortfolioSchemaLocator(new File("I don't exist"));
  }

  @Test(expectedExceptions = IllegalArgumentException.class)
  public void testLocationMustBeDirectory() throws IOException {
    new FilesystemPortfolioSchemaLocator(createTemporaryFile());
  }
View Full Code Here

Examples of com.opengamma.integration.tool.portfolio.xml.FilesystemPortfolioSchemaLocator

    new FilesystemPortfolioSchemaLocator(createTemporaryFile());
  }

  @Test
  public void testNoSchemaFoundInEmptyDirectory() throws IOException {
    FilesystemPortfolioSchemaLocator locator = new FilesystemPortfolioSchemaLocator(createEmptySchemaLocation());
    assertNull(locator.lookupSchema(new SchemaVersion("1.0")));
  }
View Full Code Here

Examples of com.opengamma.integration.tool.portfolio.xml.FilesystemPortfolioSchemaLocator

    assertNull(locator.lookupSchema(new SchemaVersion("1.0")));
  }

  @Test
  public void testMatchingSchemaFoundInDirectory() throws IOException {
    FilesystemPortfolioSchemaLocator locator = new FilesystemPortfolioSchemaLocator(
        createSchemaLocationWithVersions("1.0", "1.1", "2.0"));
    assertNotNull(locator.lookupSchema(new SchemaVersion("1.0")));
    assertNotNull(locator.lookupSchema(new SchemaVersion("1.1")));
    assertNotNull(locator.lookupSchema(new SchemaVersion("2.0")));
  }
View Full Code Here

Examples of com.opengamma.integration.tool.portfolio.xml.FilesystemPortfolioSchemaLocator

    assertNotNull(locator.lookupSchema(new SchemaVersion("2.0")));
  }

  @Test
  public void testNoSchemaFoundInDirectory() throws IOException {
    FilesystemPortfolioSchemaLocator locator = new FilesystemPortfolioSchemaLocator(
        createSchemaLocationWithVersions("1.0", "1.1", "2.0"));
    assertNull(locator.lookupSchema(new SchemaVersion("1.2")));
    assertNull(locator.lookupSchema(new SchemaVersion("2.1")));
    assertNull(locator.lookupSchema(new SchemaVersion("3.0")));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.