1   /*
2    wsmo4j - a WSMO API and Reference Implementation
3   
4    Copyright (c) 2006, University of Innsbruck, Austria
5   
6    This library is free software; you can redistribute it and/or modify it under
7    the terms of the GNU Lesser General Public License as published by the Free
8    Software Foundation; either version 2.1 of the License, or (at your option)
9    any later version.
10   This library is distributed in the hope that it will be useful, but WITHOUT
11   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12   FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13   details.
14   You should have received a copy of the GNU Lesser General Public License along
15   with this library; if not, write to the Free Software Foundation, Inc.,
16   59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17   */
18  package open.wsmo4.parser.wsml;
19  
20  import java.io.*;
21  
22  import org.wsmo.factory.*;
23  import org.wsmo.wsml.*;
24  
25  import junit.framework.*;
26  
27  /**
28   * Tests that are known to break with wsmo4j, but
29   * valid according to specification
30   *
31   * <pre>
32   * Created on 24.04.2006
33   * Committed by $Author$
34   * $Source$,
35   * </pre>
36   *
37   * @author Holger Lausen (holger.lausen@deri.org)
38   *
39   * @version $Revision$ $Date$
40   */
41  public class SpecDerivation extends TestCase {
42  
43      private Parser parser = Factory.createParser(null);
44  
45      public void testNullPointerExceptionDuringTopEntityIdentifierCheck() throws Exception {
46          //d16 v0.3 example
47          parser.parse(new FileReader("test/test/topEntityValidityCheckBreaker.wsml"));
48      }
49  }
50  
51  
52  /*
53   *$Log$
54   *Revision 1.1  2006/04/24 08:04:58  holgerlausen
55   *improved error handling in case of topentities without identifier
56   *moved thomas unit test to "open" package, since it does not break expected behavior, but just document some derivations from the spec
57   *
58   */