package test.abnahme.C; import at.gv.egovernment.moa.id.config.ConfigurationProvider; import at.gv.egovernment.moa.id.config.auth.AuthConfigurationProvider; import test.abnahme.AbnahmeTestCase; /** * @author Stefan Knirsch * @version $Id$ * */ public class Test100Konfiguration extends AbnahmeTestCase { public Test100Konfiguration(String name) { super(name); } public void testC001() throws Exception { try { System.out.println("-----------------------Testfall " + this.getName() + " erfolgreich abgearbeitet! -----------------------"); } catch (Exception e) { System.err.println("------ FEHLER IN " + this.getName() + ":" + e.getLocalizedMessage()); throw e; } } public void testC002() throws Exception { try { System.out.println("-----------------------Testfall " + this.getName() + " erfolgreich abgearbeitet! -----------------------"); } catch (Exception e) { System.err.println("------ FEHLER IN " + this.getName() + ":" + e.getLocalizedMessage()); throw e; } } public void testC003() throws Exception { try { System.out.println("-----------------------Testfall " + this.getName() + " erfolgreich abgearbeitet! -----------------------"); } catch (Exception e) { System.err.println("------ FEHLER IN " + this.getName() + ":" + e.getLocalizedMessage()); throw e; } } public void testC051() throws Exception { try { // Set moa.id.configuration property String pathname = findXmldata("ConfigurationC051.xml"); System.setProperty(ConfigurationProvider.CONFIG_PROPERTY_NAME, pathname); System.out.println("Konfiguration " + pathname); AuthConfigurationProvider.reload(); } catch (Exception e) { System.out.println("-----------------------Fehler in " + this.getName() + " erfolgreich abgefangen: " + e.getLocalizedMessage() + "-----------------------"); } // AuthConfigurationProvider.getInstance().getBKUConnectionParameter().getAcceptedServerCertificates() } }