use of jmri.profile.AuxiliaryConfiguration in project JMRI by JMRI.
the class JmriConfigurationProviderTest method testGetConfigurationFragment.
public void testGetConfigurationFragment() throws IOException {
String id = Long.toString((new Date()).getTime());
String elementName = "test:testElement";
String namespace = "test";
Profile project = new Profile(this.getName(), id, new File(this.workspace.toFile(), id));
AuxiliaryConfiguration config = JmriConfigurationProvider.getConfiguration(project);
Element e = config.getConfigurationFragment(elementName, namespace, true);
assertNull(e);
e = document.createElementNS(namespace, elementName);
config.putConfigurationFragment(e, true);
FileUtil.delete(project.getPath());
}
use of jmri.profile.AuxiliaryConfiguration in project JMRI by JMRI.
the class JmriConfigurationProviderTest method testGetConfiguration.
/**
* Test of getConfiguration method, of class JmriConfigurationProvider.
*
* @throws java.io.IOException
*/
public void testGetConfiguration() throws IOException {
String id = Long.toString((new Date()).getTime());
Profile project = new Profile(this.getName(), id, new File(this.workspace.toFile(), id));
AuxiliaryConfiguration config = JmriConfigurationProvider.getConfiguration(project);
assertNotNull(config);
FileUtil.delete(project.getPath());
}
Aggregations