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.interfaces.InterfaceLoader; 29 import org.objectweb.fractal.adl.xml.XMLLoader; 30 31 public class TestInterfaces extends Test { 32 33 public Loader l; 34 35 public TestInterfaces (final String name) { 36 super(name); 37 } 38 39 protected void setUp () { 40 InterfaceLoader itfLoader = new InterfaceLoader(); 41 itfLoader.clientLoader = new XMLLoader(false); 42 l = itfLoader; 43 } 44 45 46 public void test1 () throws ADLException { 47 assertNotNull(l.load("ITF1", null)); 48 } 49 50 public void test2 () { 51 try { 52 l.load("ITF2", null); 53 fail(); 54 } catch (ADLException e) { 55 } 56 } 57 58 public void test3 () { 59 try { 60 l.load("ITF3", null); 61 fail(); 62 } catch (ADLException e) { 63 } 64 } 65 } 66 | Popular Tags |