1   /*
2    * $Id: PathTestCase.java 11248 2008-03-07 13:41:25Z acooke $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.tools.schemadocs;
12  
13  import junit.framework.TestCase;
14  
15  public class PathTestCase extends TestCase
16  {
17  
18      public void testTagFromFileName()
19      {
20          assertEquals("quartz",
21                  SchemaDocsMain.tagFromFileName("/opt/j2ee/data/bamboo/xml-data/build-dir/MULE-MULEV20X/transports/quartz/target/mule-transport-quartz-2.0.0-RC3-SNAPSHOT.jar!/META-INF/mule-quartz.xsd"));
22          assertEquals("foo-bar",
23                  SchemaDocsMain.tagFromFileName("/opt/j2ee/data/bamboo/xml-data/build-dir/MULE-MULEV20X/transports/quartz/target/mule-transport-quartz-2.0.0-RC3-SNAPSHOT.jar!/META-INF/mule-foo-bar.xsd"));
24      }
25  
26  }