/**
 * Copyright (c) 2017, RTE (http://www.rte-france.com)
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package eu.itesla_project.iidm.xml;

import eu.itesla_project.commons.ConverterBaseTest;
import eu.itesla_project.iidm.network.test.FictitiousSwitchFactory;
import org.junit.Test;

import java.io.IOException;
import java.nio.file.Paths;

/**
 * @author Mathieu Bague <mathieu.bague@rte-france.com>
 */
public class FictitiousSwitchTest extends ConverterBaseTest {

    @Test
    public void roundTripTest() throws IOException {
        NetworkXml.write(FictitiousSwitchFactory.create(), Paths.get("/tmp/fictif.xiidm"));

        roundTripXmlTest(FictitiousSwitchFactory.create(),
                NetworkXml::writeAndValidate,
                NetworkXml::read,
                "/fictitiousSwitchRef.xml");
    }

}

@@ -470,36 +470,8 @@
 ion;
-%0Aimport java.nio.file.Paths;
 %0A%0A/*
@@ -662,101 +662,8 @@
 n %7B%0A
-        NetworkXml.write(FictitiousSwitchFactory.create(), Paths.get(%22/tmp/fictif.xiidm%22));%0A%0A
     

Fix FictitiousSwitchTest.java