Package org.openiaml.model.tests

Examples of org.openiaml.model.tests.ModelSourceResolver


*/
public class ModelSourceResolverTestCase extends TestCase {

  public void test1() {
   
    ModelSourceResolver resolver = ModelSourceResolver.getInstance();
   
    assertEquals(ModelTestCase.ROOT + "inference/model0_1/",
        resolver.getModelPathForPackage("org.openiaml.model.tests.inference.model0_1"));

    assertEquals(ModelTestCase.ROOT + "codegen/model0_5_1/",
        resolver.getModelPathForPackage("org.openiaml.model.tests.codegen.model0_5_1"));

    assertEquals(ModelTestCase.ROOT + "inference/",
        resolver.getModelPathForPackage("org.openiaml.model.tests.inference"));

    assertEquals(ModelTestCase.ROOT + "codegen/",
        resolver.getModelPathForPackage("org.openiaml.model.tests.codegen"));

    assertEquals(ModelTestCase.ROOT + "codegen/random/",
        resolver.getModelPathForPackage("org.openiaml.model.tests.codegen.random"));

    try {
      resolver.getModelPathForPackage("org.openiaml.model.tests");
      fail("Should have thrown an exception");
    } catch (IllegalArgumentException e) {
      // expected
    }

View Full Code Here

TOP

Related Classes of org.openiaml.model.tests.ModelSourceResolver

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.