Search in sources :

Example 31 with Model

use of verdict.vdm.vdm_model.Model in project VERDICT by ge-high-assurance.

the class VdmTranslatorTest method testXml.

@Test
public void testXml() throws IOException {
    File controlFile = new File("src/test/resources/vdm-model.xml");
    Model controlModel = VdmTranslator.unmarshalFromXml(controlFile);
    File testFile = File.createTempFile("vdm-model", ".xml");
    testFile.deleteOnExit();
    VdmTranslator.marshalToXml(controlModel, testFile);
    Assertions.assertThat(testFile).exists();
}
Also used : Model(verdict.vdm.vdm_model.Model) File(java.io.File) Test(org.junit.Test)

Aggregations

Model (verdict.vdm.vdm_model.Model)31 File (java.io.File)18 Test (org.junit.Test)7 Agree2Vdm (com.ge.research.osate.verdict.aadl2vdm.Agree2Vdm)4 VdmTest (com.ge.verdict.vdm.VdmTest)4 IOException (java.io.IOException)4 ArrayList (java.util.ArrayList)4 Ignore (org.junit.Ignore)4 Vdm2Csv (com.ge.research.osate.verdict.vdm2csv.Vdm2Csv)3 VDM2Lustre (edu.uiowa.clc.verdict.lustre.VDM2Lustre)3 CommandLine (org.apache.commons.cli.CommandLine)3 CostModel (com.ge.verdict.synthesis.CostModel)2 BlameAssignment (edu.uiowa.clc.verdict.blm.BlameAssignment)2 JAXBContext (jakarta.xml.bind.JAXBContext)2 JAXBException (jakarta.xml.bind.JAXBException)2 Aadl2Vdm (com.ge.research.osate.verdict.aadl2vdm.Aadl2Vdm)1 GSNInterface (com.ge.verdict.gsn.GSNInterface)1 SecurityGSNInterface (com.ge.verdict.gsn.SecurityGSNInterface)1 VerdictTestInstrumentor (com.ge.verdict.test.instrumentor.VerdictTestInstrumentor)1 Instrumentor (edu.uiowa.clc.verdict.crv.Instrumentor)1