001/* 002 * jDTAUS Banking RI CurrencyDirectory 003 * Copyright (C) 2005 Christian Schulte 004 * <cs@schulte.it> 005 * 006 * This library is free software; you can redistribute it and/or 007 * modify it under the terms of the GNU Lesser General Public 008 * License as published by the Free Software Foundation; either 009 * version 2.1 of the License, or any later version. 010 * 011 * This library is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 014 * Lesser General Public License for more details. 015 * 016 * You should have received a copy of the GNU Lesser General Public 017 * License along with this library; if not, write to the Free Software 018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 019 * 020 */ 021package org.jdtaus.banking.ri.currencydir.test; 022 023import java.net.URL; 024import org.jdtaus.banking.ri.currencydir.JaxpCurrencyDirectory; 025 026/** 027 * Tests the {@link JaxpCurrencyDirectory} implementation to support resources of the 028 * {@code http://jdtaus.org/banking/model} namespace. 029 * 030 * @author <a href="mailto:cs@schulte.it">Christian Schulte</a> 031 * @version $JDTAUS: JaxpCurrencyDirectroy_1_2_NoSchemaLocationTest.java 8661 2012-09-27 11:29:58Z schulte $ 032 */ 033public class JaxpCurrencyDirectroy_1_2_NoSchemaLocationTest extends AbstractJaxpCurrencyDirectoryTest 034{ 035 036 protected ClassLoader getClassLoader() 037 { 038 final ResourceLoader cl = new ResourceLoader( this.getClass().getClassLoader() ); 039 cl.addResources( "META-INF/jdtaus/currencies.xml", new URL[] 040 { 041 this.getClass().getResource( "currencies-no-schemalocation-1.2.xml" ) 042 } ); 043 044 return cl; 045 } 046 047}