@Test public void noFQCNUsed() { final ScenarioSimulationModel simulationModel = new ScenarioSimulationModel(); simulationModel.getImports().addImport(new Import("org.test.Test")); final String xml = instance.marshal(simulationModel); assertFalse(xml.contains("org.drools.scenariosimulation.api.model")); assertFalse(xml.contains("org.kie.soup.project.datamodel.imports")); }
public String marshal(final ScenarioSimulationModel sc) { return xt.toXML(sc); }
ScenarioSimulationXMLPersistence { public String marshal(final ScenarioSimulationModel sc) { return xt.toXML(sc); } }
ScenarioSimulationXMLPersistence { public String marshal(final ScenarioSimulationModel sc) { return xt.toXML(sc); } private  ScenarioSimulationXMLPersistence(); }
ScenarioSimulationXMLPersistence { public String marshal(final ScenarioSimulationModel sc) { return xt.toXML(sc); } private  ScenarioSimulationXMLPersistence(); static void configureXStreamMappings(XStream toConfigure); static ScenarioSimulationXMLPersistence getInstance(); static String getCurrentVersion(); static String cleanUpUnusedNodes(String input); static double getColumnWidth(String expressionIdentifierName); String marshal(final ScenarioSimulationModel sc); ScenarioSimulationModel unmarshal(final String rawXml); ScenarioSimulationModel unmarshal(final String rawXml, boolean migrate); String migrateIfNecessary(String rawXml); String extractVersion(String rawXml); MigrationStrategy getMigrationStrategy(); void setMigrationStrategy(MigrationStrategy migrationStrategy); }
ScenarioSimulationXMLPersistence { public String marshal(final ScenarioSimulationModel sc) { return xt.toXML(sc); } private  ScenarioSimulationXMLPersistence(); static void configureXStreamMappings(XStream toConfigure); static ScenarioSimulationXMLPersistence getInstance(); static String getCurrentVersion(); static String cleanUpUnusedNodes(String input); static double getColumnWidth(String expressionIdentifierName); String marshal(final ScenarioSimulationModel sc); ScenarioSimulationModel unmarshal(final String rawXml); ScenarioSimulationModel unmarshal(final String rawXml, boolean migrate); String migrateIfNecessary(String rawXml); String extractVersion(String rawXml); MigrationStrategy getMigrationStrategy(); void setMigrationStrategy(MigrationStrategy migrationStrategy);  }