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.xml.XMLLoader; 29 30 public class TestCore extends Test { 31 32 public Loader l; 33 34 public TestCore (final String name) { 35 super(name); 36 } 37 38 protected void setUp () { 39 l = new XMLLoader(false); 40 } 41 42 public void test1 () throws ADLException { 43 assertNotNull(l.load("K1", null)); 44 } 45 46 public void test2 () throws ADLException { 47 try { 48 l.load("K2", null); 49 fail(); 50 } catch (ADLException e) { 51 } 52 } 53 54 public void test3 () throws ADLException { 55 try { 56 l.load("K3", null); 57 fail(); 58 } catch (ADLException e) { 59 } 60 } 61 62 public void test4 () throws ADLException { 63 try { 64 l.load("error", null); 65 fail(); 66 } catch (ADLException e) { 67 } 68 } 69 } 70 | Popular Tags |