@@ -0,0 +1,1999 @@
+package com.epimorphics.registry.language.message;%0A%0Aimport org.junit.Test;%0A%0Aimport java.io.File;%0Aimport java.io.FileWriter;%0Aimport java.io.IOException;%0Aimport java.nio.file.Files;%0A%0Aimport static org.junit.Assert.*;%0A%0Apublic class FileMessageManagerTest %7B%0A    private String srcDirPath;%0A    private FileMessageManager file;%0A%0A    public FileMessageManagerTest() throws IOException %7B%0A        File configDir = Files.createTempDirectory(%22FileMessageManagerTest%22).toFile();%0A        configDir.deleteOnExit();%0A%0A        File enProps = new File(configDir, %22en.properties%22);%0A%0A        new FileWriter(enProps)%0A                .append(%22name.label = Name%5Cn%22)%0A                .append(%22surname.label = Surname%5Cn%22)%0A                .append(%22welcome.heading = Welcome %7B0%7D %7B1%7D!%22)%0A                .close();%0A%0A        File frProps = new File(configDir, %22fr.properties%22);%0A%0A        new FileWriter(frProps)%0A                .append(%22name.label = Prenom%5Cn%22)%0A                .append(%22surname.label = Nom%5Cn%22)%0A                .append(%22welcome.heading = Bienvenue %7B0%7D %7B1%7D!%22)%0A                .close();%0A%0A        this.srcDirPath = configDir.getAbsolutePath();%0A        this.file = new FileMessageManager(srcDirPath);%0A    %7D%0A%0A    @Test%0A    public void test() %7B%0A        Messages en = file.getMessages(%22en%22);%0A        assertNotNull(en);%0A        assertEquals(%22Name%22, en.get(%22name.label%22));%0A        assertEquals(%22Surname%22, en.get(%22surname.label%22));%0A        assertEquals(%22Welcome John Smith!%22, en.get(%22welcome.heading%22, %22John%22, %22Smith%22));%0A        assertEquals(%22%5B MESSAGE MISSING %5D%22, en.get(%22footer.email.field%22));%0A%0A        Messages fr = file.getMessages(%22fr%22);%0A        assertNotNull(fr);%0A        assertEquals(%22Prenom%22, fr.get(%22name.label%22));%0A        assertEquals(%22Nom%22, fr.get(%22surname.label%22));%0A        assertEquals(%22Bienvenue C%C3%A9line Ren%C3%A9e!%22, fr.get(%22welcome.heading%22, %22C%C3%A9line%22, %22Ren%C3%A9e%22));%0A        assertEquals(%22%5B MESSAGE MISSING %5D%22, fr.get(%22footer.email.field%22));%0A%0A        Messages gr = file.getMessages(%22gr%22);%0A        assertNull(gr);%0A    %7D%0A%7D%0A

Add FileMessageManagerTest