38 lines
859 B
Java
38 lines
859 B
Java
package jmri.profile;
|
|
|
|
import java.io.File;
|
|
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.jupiter.api.*;
|
|
import org.junit.jupiter.api.io.TempDir;
|
|
|
|
/**
|
|
*
|
|
* @author Paul Bender Copyright (C) 2017
|
|
*/
|
|
public class ProfilePropertiesTest {
|
|
|
|
@Test
|
|
public void testCTor(@TempDir File folder) throws java.io.IOException {
|
|
File profileFolder = new File(folder, "test");
|
|
Profile instance = new Profile("test", "test", profileFolder);
|
|
instance.setName("saved");
|
|
ProfileProperties t = new ProfileProperties(instance);
|
|
Assertions.assertNotNull( t, "exists");
|
|
}
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() {
|
|
JUnitUtil.tearDown();
|
|
}
|
|
|
|
// private static final Logger log = LoggerFactory.getLogger(ProfilePropertiesTest.class);
|
|
|
|
}
|