Commit 3d3693dd authored by Uwe Peuker's avatar Uwe Peuker
Browse files

Umbenannte Tests aus Originalquellen entfernt

parent be6c0c11
Loading
Loading
Loading
Loading
+0 −46
Original line number Diff line number Diff line
/*
 * Segment 7 (Ste), SWE TMC-Meldungsverwaltung
 * Copyright (C) 2016 BitCtrl Systems GmbH 
 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This programm is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
 *
 * Contact Information:
 * BitCtrl Systems GmbH
 * Weißenfelser Straße 67
 * 04229 Leipzig
 * Phone: +49 341-490670
 * mailto: info@bitctrl.de
 */

package de.bsvrz.ste.tmcvew;

import org.junit.runner.RunWith;
import org.junit.runners.Suite;

@RunWith(Suite.class)
@Suite.SuiteClasses({RdsMeldungTest2.class, 
                     RdsMeldungTest3.class,
                     RdsMeldungTest4.class,
                     RdsMeldungTest5.class,
                     RdsMeldungTest6.class
                    })

/**
 * Prüfungen für den Prüf(-Unter)-Fall 5.2.3.3.1 QS-02.07.00.00.00-PrSpez S.39
 * (Prüfspezifikation RDS/TMC-Verwaltung).
 */                    
                    
public class Prueffall1_Suite {
}
+0 −42
Original line number Diff line number Diff line
/*
 * Segment 7 (Ste), SWE TMC-Meldungsverwaltung
 * Copyright (C) 2016 BitCtrl Systems GmbH 
 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This programm is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
 *
 * Contact Information:
 * BitCtrl Systems GmbH
 * Weißenfelser Straße 67
 * 04229 Leipzig
 * Phone: +49 341-490670
 * mailto: info@bitctrl.de
 */

package de.bsvrz.ste.tmcvew;

import org.junit.runner.RunWith;
import org.junit.runners.Suite;

@RunWith(Suite.class)
@Suite.SuiteClasses({RdsMeldungTest7.class 
                    })

/**
 * Prüfungen für den Prüf(-Unter)-Falle 5.2.3.3.3 gemäß Prüfspezifikation
 * RDS/TMC-Verwaltung, QS-02.07.00.00.00-PrSpez S. 43.
 */                    
public class Prueffall2_Suite {
}
+0 −113
Original line number Diff line number Diff line
/*
 * Segment 7 (Ste), SWE TMC-Meldungsverwaltung
 * Copyright (C) 2016 BitCtrl Systems GmbH 
 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This programm is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
 *
 * Contact Information:
 * BitCtrl Systems GmbH
 * Weißenfelser Straße 67
 * 04229 Leipzig
 * Phone: +49 341-490670
 * mailto: info@bitctrl.de
 */

package de.bsvrz.ste.tmcvew;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import de.bsvrz.dav.daf.main.ClientDavInterface;

/**
 * Junit-Test für Testfall 2 der Prüfspezifikation. Ein laufendes Kernsystem
 * wird vorausgesetzt.
 * 
 * Erstellt auf Basis der SWE RDS/TMC-Meldungen von: Dambach Werke GmbH, Stefan
 * Sans
 * 
 * @author BitCtrl Systems GmbH, Gieseler
 * @version $Id: $
 */
public class RdsMeldungTest2 {
	
	/**
	 * Datenverteilerverbindung.
	 */
	private static ClientDavInterface connection;
	private static RdsMeldung m;

	/**
	 * Aufbau der Datenverteilerverbindung.
	 * 
	 * @throws Exception
	 *             kann durch verschiedene Quellen erzeut werden.
	 */
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {

		m = new RdsMeldung();

		connection = m.prozessStart(connection, "Starte Testfall 2 ");

	}

	/**
	 * Abbau der Datenverteilerverbindung.
	 * 
	 * @throws Exception
	 *             kann durch verschiedene Quellen erzeut werden.
	 */
	@AfterClass
	public static void tearDownAfterClass() throws Exception {
		System.out.println("tearDownAfterClass");
		m.prozessStop();
		if (connection != null) {
			connection.disconnect(false, "");
		}
	}

	/**
	 * Instanz auf die zu prüfende Klasse.
	 * 
	 * @throws Exception bei Fehlern
	 */
	@Before
	public void setUp() throws Exception {
		m.iniRdsMeldung(connection);
	}

	/**
	 * Testfall.
	 * 
	 * @throws Exception bei Fehlern
	 */
	@Test
	public void testTestfall() throws Exception {
		try {
//			final boolean testfall = m.testfall(connection, "Testfall2", 1);
//			System.out.println("TESTFALL: " + testfall);
			 assertTrue("Test 2", m.testfall(connection, "Testfall2", 1));
		} catch (final Exception e) {
			e.printStackTrace();
			assertEquals("Test 2", e.getMessage(), "Ungültige Exeption geworfen");
		}
	}
}
+0 −110
Original line number Diff line number Diff line
/*
 * Segment 7 (Ste), SWE TMC-Meldungsverwaltung
 * Copyright (C) 2016 BitCtrl Systems GmbH 
 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This programm is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
 *
 * Contact Information:
 * BitCtrl Systems GmbH
 * Weißenfelser Straße 67
 * 04229 Leipzig
 * Phone: +49 341-490670
 * mailto: info@bitctrl.de
 */

package de.bsvrz.ste.tmcvew;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import de.bsvrz.dav.daf.main.ClientDavInterface;

/**
 * Junit-Test für Testfall 3 der Prüfspezifikation. Ein laufendes Kernsystem
 * wird vorausgesetzt.
 * 
 * 
 * Erstellt auf Basis der SWE RDS/TMC-Meldungen von: Dambach Werke GmbH, Stefan
 * Sans
 * 
 * @author BitCtrl Systems GmbH, Gieseler
 * @version $Id: $
 */
public class RdsMeldungTest3 {
	/**
	 * Datenverteilerverbindung.
	 */
	private static ClientDavInterface connection;

	private static RdsMeldung m;

	/**
	 * Aufbau der Datenverteilerverbindung.
	 * 
	 * @throws Exception
	 *             kann durch verschiedene Quellen erzeut werden.
	 */
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		m = new RdsMeldung();

		connection = m.prozessStart(connection, "Starte Testfall 3 ");

	}

	/**
	 * Abbau der Datenverteilerverbindung.
	 * 
	 * @throws Exception
	 *             kann durch verschiedene Quellen erzeut werden.
	 */
	@AfterClass
	public static void tearDownAfterClass() throws Exception {
		m.prozessStop();
		if (connection != null) {
			connection.disconnect(false, "");
		}
	}

	/**
	 * Instanz auf die zu prüfende Klasse.
	 * 
	 * @throws Exception bei Fehlern
	 */
	@Before
	public void setUp() throws Exception {
		m.iniRdsMeldung(connection);
	}

	/**
	 * Testfall.
	 */
	@Test
	public void testTestfall() {

		try {
			assertTrue("Test 3", m.testfall(connection, "Testfall3", 1));
			// assertTrue(m.testfall( m_connection,"Testfall2") );
		} catch (final Exception e) {
			assertEquals("Test 3", e.getMessage(), "Ungültige Exeption geworfen");
		}
	}

}
+0 −81
Original line number Diff line number Diff line
/**
 * 
 */
package de.bsvrz.ste.tmcvew;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import de.bsvrz.dav.daf.main.ClientDavInterface;

/**
 * Junit-Test für Testfall 4 der Prüfspezifikation. Ein laufendes Kernsystem
 * wird vorausgesetzt.
 * 
 * Erstellt auf Basis der SWE RDS/TMC-Meldungen von: Dambach Werke GmbH, Hilpp
 * 
 * @author BitCtrl Systems GmbH, Gieseler
 * @version $Id: $
 */
public class RdsMeldungTest4 {
	/**
	 * Datenverteilerverbindung.
	 */
	private static ClientDavInterface m_connection = null;
	private static RdsMeldung m;

	/**
	 * Aufbau der Datenverteilerverbindung.
	 * 
	 * @throws Exception
	 *             kann durch verschiedene Quellen erzeut werden.
	 */
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		m = new RdsMeldung();

		m_connection = m.prozessStart(m_connection, "Starte Testfall 4 ");

	}

	/**
	 * Abbau der Datenverteilerverbindung.
	 * 
	 * @throws Exception
	 *             kann durch verschiedene Quellen erzeut werden.
	 */
	@AfterClass
	public static void tearDownAfterClass() throws Exception {
		m.prozessStop();
		if (m_connection != null) {
			m_connection.disconnect(false, "");
		}
	}

	@Before
	public void setUp() throws Exception {
		m.iniRdsMeldung(m_connection);
	}


	/**
	 * Testfall.
	 */
	@Test
	public void testTestfall() {

		try {
			assertTrue("Test 4", m.testfall(m_connection, "Testfall4", 1));
			// assertTrue(m.testfall( m_connection,"Testfall2") );
		} catch (Exception e) {
			// TODO Auto-generated catch block
			assertEquals("Test 4", e.getMessage(), "Ung�ltige Exeption geworfen");
		}
	}

}
Loading