View Javadoc

1   /*
2    *  jDTAUS Banking RI Bankleitzahlenverzeichnis
3    *  Copyright (c) 2011 Christian Schulte
4    *
5    *  This library is free software; you can redistribute it and/or
6    *  modify it under the terms of the GNU Lesser General Public
7    *  License as published by the Free Software Foundation; either
8    *  version 2.1 of the License, or any later version.
9    *
10   *  This library is distributed in the hope that it will be useful,
11   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13   *  Lesser General Public License for more details.
14   *
15   *  You should have received a copy of the GNU Lesser General Public
16   *  License along with this library; if not, write to the Free Software
17   *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18   *
19   */
20  package org.jdtaus.banking.ri.blzdirectory.test;
21  
22  import java.net.URL;
23  import org.jdtaus.banking.ri.blzdirectory.BankfileBankleitzahlenVerzeichnis;
24  
25  /**
26   * Tests the {@link BankfileBankleitzahlenVerzeichnis} implementation to operate without finding resources.
27   *
28   * @author <a href="mailto:cs@schulte.it">Christian Schulte</a>
29   * @version $JDTAUS: BankfileBankleitzahlenVerzeichnis_NoBankfiles_Test.java 8661 2012-09-27 11:29:58Z schulte $
30   */
31  public class BankfileBankleitzahlenVerzeichnis_NoBankfiles_Test extends AbstractBankfileBankleitzahlenVerzeichnisTest
32  {
33  
34      protected ClassLoader getClassLoader()
35      {
36          final ResourceLoader cl = new ResourceLoader( this.getClass().getClassLoader() );
37          cl.addResources( "META-INF/jdtaus/bankfiles.properties", new URL[]
38              {
39                  this.getClass().getResource( "no-bankfiles.properties" )
40              } );
41  
42          return cl;
43      }
44  
45      public void testBankleitzahlExpirationException() throws Exception
46      {
47          System.out.println( "Skipped due to empty directory." );
48      }
49  
50  }