blob: 7fd042d7357cdb6c32d08923c0ebef99b50853c3 [file] [log] [blame]
package org.eclipse.basyx.regression.xmlAAS;
import java.io.IOException;
import javax.xml.parsers.ParserConfigurationException;
import org.eclipse.basyx.components.configuration.BaSyxContextConfiguration;
import org.eclipse.basyx.components.executable.XMLExecutable;
import org.junit.BeforeClass;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xml.sax.SAXException;
public class TestXMLAAS extends XMLAASSuite {
private static Logger logger = LoggerFactory.getLogger(TestXMLAAS.class);
@BeforeClass
public static void setUpClass() throws ParserConfigurationException, SAXException, IOException {
XMLExecutable.main(new String[] {});
BaSyxContextConfiguration config = new BaSyxContextConfiguration();
config.loadFromResource(BaSyxContextConfiguration.DEFAULT_CONFIG_PATH);
aasEndpoint = "http://" + config.getHostname() + ":" + config.getPort() + "/" + config.getContextPath() + "/" + aasShortId + "/aas";
smEndpoint = "http://" + config.getHostname() + ":" + config.getPort() + "/" + config.getContextPath() + "/" + aasShortId + "/aas/submodels/" + smShortId + "/submodel";
logger.info("AAS URL for servlet test: " + aasEndpoint);
}
}