blob: 4842f862efad8c236b8777923997f9012869e6a9 [file] [log] [blame]
package org.eclipse.basyx.regression.AASServer;
import java.io.IOException;
import javax.xml.parsers.ParserConfigurationException;
import org.eclipse.basyx.components.aas.AASServerComponent;
import org.eclipse.basyx.components.configuration.BaSyxContextConfiguration;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.xml.sax.SAXException;
/**
* Tests the component using the test suite
*
* @author schnicke
*
*/
public class TestInMemoryAASServer extends AASServerSuite {
private static AASServerComponent component;
@Override
protected String getURL() {
return component.getURL() + "/shells";
}
@BeforeClass
public static void setUpClass() throws ParserConfigurationException, SAXException, IOException {
BaSyxContextConfiguration config = new BaSyxContextConfiguration();
config.loadFromResource(BaSyxContextConfiguration.DEFAULT_CONFIG_PATH);
component = new AASServerComponent(config);
component.startComponent();
}
@AfterClass
public static void tearDownClass() {
component.stopComponent();
}
}