use of com.intellij.coldFusion.UI.config.CfmlProjectConfiguration in project intellij-plugins by JetBrains.
the class CfmlStorageStateTest method doTest.
private void doTest(String xml) throws Throwable {
final CfmlProjectConfiguration def = CfmlProjectConfiguration.getInstance(getProject());
final CfmlProjectConfiguration.State defaultState = CfmlProjectConfiguration.getInstance(getProject()).getState();
CfmlProjectConfiguration.State configState = XmlSerializer.deserialize(JdomKt.loadElement(xml).getChild("component"), CfmlProjectConfiguration.State.class);
try {
def.loadState(configState);
assertThat(XmlSerializer.serialize(def.getState())).isEqualTo("<State>\n" + " <mapps>\n" + " <mapping logical_path=\"/cal\" directory=\"C:\\ColdFusion9\\wwwroot\\Sandbox\\calendar\" />\n" + " </mapps>\n" + "</State>");
} finally {
CfmlProjectConfiguration.getInstance(getProject()).loadState(defaultState);
}
//XmlSerializer.serialize(state);
//assertEquals(1, defaultConfig.getState().getMapps().getServerMappings().size());
}
Aggregations