1 23 24 package org.objectweb.fractal.adl.conform; 25 26 import org.objectweb.fractal.adl.ADLException; 27 import org.objectweb.fractal.adl.Loader; 28 import org.objectweb.fractal.adl.components.ComponentLoader; 29 import org.objectweb.fractal.adl.xml.XMLLoader; 30 31 public class TestComponents extends Test { 32 33 public Loader l; 34 35 public TestComponents (final String name) { 36 super(name); 37 } 38 39 protected void setUp () { 40 ComponentLoader compLoader = new ComponentLoader(); 41 compLoader.clientLoader = new XMLLoader(false); 42 l = compLoader; 43 } 44 45 public void test1 () throws ADLException { 46 l.load("COMP1", null); 47 } 48 49 54 55 public void test3 () throws ADLException { 56 try { 57 l.load("COMP4", null); 58 fail(); 59 } catch (ADLException e) { 60 } 61 } 62 } 63 | Popular Tags |