Package org.bladerunnerjs.aliasing.aliasdefinitions

Examples of org.bladerunnerjs.aliasing.aliasdefinitions.AliasDefinitionsFile


  @Test
  public void nestedAliasDefinitionsFilesCanBeUsedInResourcesDirectories() throws Exception {
    // TODO: think of a way of doing this in a more BDD way
    FileUtils.write(blade.assetLocation("resources").file("aliasDefinitions.xml"), "<aliasDefinitions xmlns='http://schema.caplin.com/CaplinTrader/aliasDefinitions'/>");
    FileUtils.write(blade.assetLocation("resources").file("dir/aliasDefinitions.xml"), "<aliasDefinitions xmlns='http://schema.caplin.com/CaplinTrader/aliasDefinitions'/>");
    AliasDefinitionsFile nestedBladeAliasDefinitionsFile = blade.assetLocation("resources").aliasDefinitionsFiles().get(1);
   
    given(bladeAliasDefinitionsFile).hasAlias("appns.bs.b1.alias1", "Class1", "TheInterface")
      .and(nestedBladeAliasDefinitionsFile).hasAlias("appns.bs.b1.alias2", "Class2", "TheInterface");
    then(aspect).hasAlias("appns.bs.b1.alias1", "Class1", "TheInterface")
      .and(aspect).hasAlias("appns.bs.b1.alias2", "Class2", "TheInterface");
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.aliasing.aliasdefinitions.AliasDefinitionsFile

Copyright © 2018 www.massapicom. 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.